top of page

게시판 게시물

deasungz
2020년 7월 15일
In 소스 코드 제출
// //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // for(int i=1 ; i <=100 ; i++) { // System.out.print(i+ " "); // } // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // for(int i=1 ; i<=a ; i++) { // System.out.print(i+ " "); // } // } //} // // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // // if(a<b) { // for(int i=a ; i<=b ; i++ ) { // System.out.print(i+" "); // } // } // else { // for(int i=b ; i<=a ; i++ ) // System.out.print(i+" "); // } // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // double a = t.nextDouble(); // double b = t.nextDouble(); // // if (a<=b) { // for(double i =a; i<=b ; i+=0.01) // System.out.printf("%.2f ",i); // } // else { // for(double i =b; i<=a ; i+=0.01) // System.out.printf("%.2f ", i); // } // // // // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // // int sum = 0; // for (int i=0; i<a; i++) { // int k = t.nextInt(); // sum+= k; // // // // } // System.out.println(sum); // // } //} // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t= new Scanner(System.in); // // int a = t.nextInt(); // // int sum = 0; // for (int i =0; i<a; i++) { // int b = t.nextInt(); // if(b%5==0) // sum+= b; // } // System.out.println(sum); // // // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // // int sum = 0; // for (int i = 0; i<a; i++) { // int b = t.nextInt(); // if(b%2==0) // sum+=1; // sum = sum + 1 // // } // System.out.println(sum); // // // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // int b = t.nextInt(); // int c = t.nextInt(); // int d = t.nextInt(); // // // for (int i = 0; i<d-1; i++) { // a = a * b + c; // } // System.out.println(a); // } //} // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // // int sum=0; // for(int i =1; i<=a; i++) { // if(i%10==1) // { // sum+=1; // } // } // System.out.println(sum); // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // // int sum=1; // for(int i =1 ; i<=a ; i++) // sum*= i; // // // // System.out.println(sum); // } //} // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // // // for(int i =0 ; i<a; i++) { // int b = t.nextInt(); // if(i==0) { // System.out.print(b+" "); // } // if(i==a-1) { // System.out.print(b+" "); // } // if(i==a/2) { // System.out.print(b+ " "); // } // } // // // } // //} import java.util.*; public class Main{ public static void main(String[] args) { Scanner t= new Scanner(System.in); int a = t.nextInt(); int sum=0; for(int i=1; i<=1000000; i++) { sum++; a = a/10; if(a==0) { break; } } System.out.println(sum); } }
0
0
2
deasungz
2020년 6월 24일
In 소스 코드 제출
// // //////public class Main { ////// public static void main(String[] args) { ////// System.out.println("asdas"); ////// } //////} //// ////public class Main { //// public static void main(String[] args) { //// System.out.println("\"!@#$%^&*()\""); //// ////}} //// ////public class Main { //// public static void main(String[] args) { //// System.out.println("\"C:\\Download\\hello.cpp\""); //// } ////} // ////public class Main { //// public static void main(String[] args) { //// System.out.print("Hello\n"); //// System.out.println("World"); //// System.out.printf("%.2f", 1.15135); //// } ////} // ///* // * 정수 > 1, 2, 3, -1, -2, // * 실수 > 1.23, 5.456 // * 문자 > 'A', 'C', '7', '%' // * // * 1 bit > 8 > 1 byte > 1024 > 1KB > 1024 // * 정수 > int(4), long(8) // * 실수 > float(4), double(8) // * 문자 > char(2) // */ //import java.util.Scanner; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // // System.out.println(a+b); // } //} // // // // // // // // // //// //// //// //// //import java.util.Scanner; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); //// int b = t.nextInt(); // System.out.println(a); // // } //} // //import java.util.Scanner; //public class Main{ //public static void main(String[] args) { // Scanner t = new Scanner(System.in); // float a = t.nextFloat(); //// float b = t.nextFloat(); // System.out.printf("%.6f",a); ////}} // // import java.util.Scanner; // public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // int b = t.nextInt(); // // System.out.printf("%d %d", a, b); // } // } //import java.util.Scanner; //public class Main{ //public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // // int b = t.nextInt(); // System.out.printf("%d %d %d ",a ,a, a ); // } // } // //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // // System.out.println(a+b); // } //} /* * + * - * * * / > 5/2 = 2.5 * 정수/정수 > ? 정수 * 5/2 = 2 * 형변환 > * (float)5/2 = 2.5 * % > 5/2 = 2...[1] * * */ //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // long a = t.nextLong(); // System.out.println(a+b); // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // long a = t.nextLong(); // long b = t.nextLong(); // System.out.println(a+b); // } //} // // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // // int a = t.nextInt(); //// int b = t.nextInt(); // // System.out.printf("%d",-a); // // } //} // // //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // // System.out.println(a/b); // // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // long a = t.nextInt(); // // System.out.println(a+1); // // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t =new Scanner(System.in); // // long a = t.nextInt(); // long b = t.nextInt(); // long c = t.nextInt(); // System.out.println(a+b+c); // System.out.printf("%.1f",(a+b+c)/(float)3); // } //} //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a = t.nextInt(); // int b = t.nextInt(); // // System.out.println(a/b); // // import java.util.*; public class Main{ public static void main(String[] args) { Scanner t = new Scanner(System.in); int a = t.nextInt(); System.out.printf("%.3f",(float)9/5*a+32); } } //////// //////// ////////////public class Main { //////////// public static void main(String[] args) { //////////// System.out.println("asdas"); //////////// } ////////////} ////////// //////////public class Main { ////////// public static void main(String[] args) { ////////// System.out.println("\"!@#$%^&*()\""); ////////// //////////}} ////////// //////////public class Main { ////////// public static void main(String[] args) { ////////// System.out.println("\"C:\\Download\\hello.cpp\""); ////////// } //////////} //////// //////////public class Main { ////////// public static void main(String[] args) { ////////// System.out.print("Hello\n"); ////////// System.out.println("World"); ////////// System.out.printf("%.2f", 1.15135); ////////// } //////////} //////// /////////* //////// * 정수 > 1, 2, 3, -1, -2, //////// * 실수 > 1.23, 5.456 //////// * 문자 > 'A', 'C', '7', '%' //////// * //////// * 1 bit > 8 > 1 byte > 1024 > 1KB > 1024 //////// * 정수 > int(4), long(8) //////// * 실수 > float(4), double(8) //////// * 문자 > char(2) //////// */ ////////import java.util.Scanner; //////// ////////public class Main { //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// //////// System.out.println(a+b); //////// } ////////} //////// //////// //////// //////// //////// //////// //////// //////// //////// ////////// ////////// ////////// ////////// ////////import java.util.Scanner; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// int a = t.nextInt(); ////////// int b = t.nextInt(); //////// System.out.println(a); //////// //////// } ////////} //////// ////////import java.util.Scanner; ////////public class Main{ ////////public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// float a = t.nextFloat(); ////////// float b = t.nextFloat(); //////// System.out.printf("%.6f",a); //////////}} //////// //////// import java.util.Scanner; //////// public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// //////// System.out.printf("%d %d", a, b); //////// } //////// } ////////import java.util.Scanner; ////////public class Main{ ////////public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// int a = t.nextInt(); //////// // int b = t.nextInt(); //////// System.out.printf("%d %d %d ",a ,a, a ); //////// } //////// } //////// ////// ////////import java.util.*; //////// ////////public class Main { //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// //////// System.out.println(a+b); //////// } ////////} ////// ///////* ////// * + ////// * - ////// * * ////// * / > 5/2 = 2.5 ////// * 정수/정수 > ? 정수 ////// * 5/2 = 2 ////// * 형변환 > ////// * (float)5/2 = 2.5 ////// * % > 5/2 = 2...[1] ////// * ////// * ////// */ ////// ////////import java.util.*; //////// ////////public class Main { //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// long a = t.nextLong(); //////// System.out.println(a+b); //////// } ////////} ////// ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// long a = t.nextLong(); //////// long b = t.nextLong(); //////// System.out.println(a+b); //////// } ////////} //////// //////// ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// //////// int a = t.nextInt(); ////////// int b = t.nextInt(); //////// //////// System.out.printf("%d",-a); //////// //////// } ////////} //////// //////// ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// //////// System.out.println(a/b); //////// //////// } ////////} ////// ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// long a = t.nextInt(); //////// //////// System.out.println(a+1); //////// //////// } ////////} ////// ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t =new Scanner(System.in); //////// //////// long a = t.nextInt(); //////// long b = t.nextInt(); //////// long c = t.nextInt(); //////// System.out.println(a+b+c); //////// System.out.printf("%.1f",(a+b+c)/(float)3); //////// } ////////} ////////import java.util.*; ////////public class Main{ //////// public static void main(String[] args) { //////// Scanner t = new Scanner(System.in); //////// //////// int a = t.nextInt(); //////// int b = t.nextInt(); //////// //////// System.out.println(a/b); //////// //////// ////// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// ////// int a = t.nextInt(); ////// ////// System.out.printf("%.3f",(float)9/5*a+32); ////// ////// } //////} //// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// int a =t.nextInt(); ////// ////// if(a<10) { ////// System.out.println("small"); ////// } ////// } //////} ////// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// int a = t.nextInt(); ////// ////// ////// if(a>=10) { ////// System.out.println("big"); ////// } ////// else if(a<10) ////// {System.out.println("small");} ////// ////// } //////} //// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// ////// int a = t.nextInt(); ////// int b =t.nextInt(); ////// ////// if(a>b) { ////// System.out.println(">");} ////// else if (b>a) {System.out.println("<");} ////// else if (a==b) {System.out.println("=");} ////// } ////// ////// } ////// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// ////// int a = t.nextInt(); ////// int b = t.nextInt(); ////// ////// if(a>b) ////// {System.out.println(a-b);} ////// else { ////// System.out.println(b-a); ////// } ////// } //////} ////// //////import java.util.*; //////public class Main{ //////public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// int a = t.nextInt(); ////// ////// ////// ////// if(a%7==0) { ////// System.out.println("multiple");} ////// else { ////// System.out.println("not multiple");} ////// } ////// ////// //////} ////// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// int a = t.nextInt(); ////// int b = t.nextInt(); ////// int c = t.nextInt(); ////// ////// if((a+b+c)/100%2==0){ ////// System.out.println("대박"); ////// } ////// else { ////// System.out.println("그럭저럭"); ////// } ////// }} //// //////import java.util.*; //////public class Main{ ////// ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// int a = t.nextInt(); ////// int b = t.nextInt(); ////// int c = t.nextInt(); ////// ////// if(a<=170) { ////// System.out.println("CRASH"); ////// } ////// else if(b<=170) { ////// System.out.println("CRASH"); ////// } ////// else if(c<=170) { ////// System.out.println("CRASH"); ////// } ////// else { ////// System.out.println("PASS"); ////// } ////// } ////// //// ////// //////import java.util.*; //////public class Main{ ////// public static void main(String[] args) { ////// Scanner t = new Scanner (System.in); ////// int a = t.nextInt(); ////// int b = t.nextInt(); ////// int c = t.nextInt(); ////// ////// if(a<=170) { ////// System.out.println("CRASH "+a ); ////// ////// } ////// ////// ////// else if(b<=170) { ////// System.out.println("CRASH "+b); ////// ////// } ////// ////// else if(c<=170) { ////// System.out.println("CRASH "+c); ////// ////// } ////// else { ////// System.out.println("PASS"); ////// } ////// } //////} ////// ////import java.util.*; ////public class Main{ //// public static void main(String[] args) { //// Scanner t = new Scanner(System.in); //// int a = t.nextInt(); //// int b = t.nextInt(); //// //// /* //// * 30분 전 //// * 입력받은 분이 <-30-> //// * 0~29 : 빌려오는 시간 //// * 30~59 : 깍아도 되는 시간 //// * //// * //// * //// */ //// //// //// //// //// //// if(b>=30) { //// System.out.printf("%d %d", a, b-30); //// } //// else { //// if(a==0) { //// System.out.printf("%d %d", 23, b+30); //// } //// else { //// System.out.printf("%d %d", a-1, b+30); //// } //// } //// //// } ////} ////// //////import java.util.*; ////// //////public class Main { ////// public static void main(String[] args) { ////// Scanner t = new Scanner(System.in); ////// ////// int arr[] = new int[10]; ////// int max = -1; ////// ////// System.out.println("input data is "); ////// for(int i=0; i<10; i++) { ////// arr[i] = (int)(Math.random()*10); ////// System.out.print(arr[i] +" "); ////// } ////// ////// for(int i=0; i<arr.length; i++) { ////// if (arr[i] > max) { ////// max = arr[i]; ////// } ////// } ////// System.out.println("maximum data is "+max); ////// } //////} //// //// //// //// //// //// //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // int a = t.nextInt(); // int b = t.nextInt(); // int c = t.nextInt(); // // if(c>=a && c>=b) { // if(c < a+b) // { // System.out.println("yes"); // } // else { // System.out.println("no"); // } // } // else if (b>=a && b>=c ) { // if(b<a+c) // System.out.println("yes"); // else { // System.out.println("no"); // } // } // else if(a>=b && a>=c) { // if(a<c+b) // System.out.println("yes"); // else { // System.out.println("no"); // } // } // // } //}
0
0
4

deasungz

더보기
bottom of page