top of page

게시판 게시물

james_0823
2022년 8월 25일
In 소스 코드 제출
//import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int num[] = new int[n]; // int count = 0; // int res = 0; // // for(int i = 0; i < num.length; i++) { // num[i] = t.nextInt(); // } // for(int i = 0; i < num.length; i++) { // if(num[i] == 1) { // count++; // } // else { // count = 0; // } // res += count; // } // System.out.println(res); // } //} //4626 : 점수 계산 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int c = t.nextInt(); // int stu[] = new int[23]; // int num = 0; // // for(int i = 0; i < c; i++) { // num = t.nextInt(); // stu[num-1] += 1; // } // for(int i = 0; i < stu.length; i++) { // System.out.print(stu[i] + " "); // } // } //} //[기초-1차원배열] 이상한 출석 번호 부르기1 //문자열 String // char str[50] 문자의 일차원배열 != 문자열 // String을 char arr[]로 변경해서 사용 //문자열끼리 비교할때는 ==대신 equals 사용해야한다! //import java.util.*; //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // //String str = t.next(); // //char arr[] = str.toCharArray(); // //arr[5] (o) // // //str[5] (x) // //str.charAt(5) // //for(int i=0;i<str.length();i++) // String s1 = "hello"; // String s2 = "hello"; //// if(s1==s2) { //같은 주소냐? //// } // // if(s1.equals(s2)) // // //if(s1.equals(s2)) System.out.println("same"); // //System.out.print((int)s1.charAt(0)); // // //System.out.println(s1.); // // String str = "hello world hi my name is ... "; // String arr[] = str.split(" "); // str.replace('h', 't'); // //str.replace("h", "t"); // //System.out.println(str); // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // String a = t.next(); // int length = a.length(); // // for(int i = 0; i < length; i++) { // System.out.printf("\'%c\'\n",a.charAt(i)); // } // } //} //[기초-입출력] 단어 1개 입력받아 나누어 출력하기(설명) //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int cnt1 = 0; // int cnt2 = 0; // String a = t.nextLine(); // // for(int i = 0; i < a.length(); i++) { // if(a.charAt(i) == '(')cnt1++; // else if(a.charAt(i) == ')')cnt2++; // } // System.out.println(cnt1 + " " + cnt2); // } //} //1410 : 올바른 괄호 1 (괄호 개수 세기) //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // String a = t.nextLine(); // char b[] = a.toCharArray(); // // for(int i = 0; i < b.length; i++) { // if((int)b[i] > 96 && (int)b[i] < 123)b[i] -= 32; // else if((int)b[i] > 64 && (int)b[i] < 91)b[i] +=32; // } // for(int i = 0; i <b.length; i++) { // System.out.print(b[i]); // } // } //} //1295 : 알파벳 대소문자 변환 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // // String input = t.nextLine(); // // System.out.print(input); // } //} //1133 : 공백이 있는 문자열 입출력 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // String a = t.next(); // String b = t.next(); // // if(a.length() < b.length())System.out.println(a + " " + b); // else if(a.length() > b.length()) System.out.println(b + " " + a); // else { // System.out.println(a + " "+ b); //여기 code // } // } //} //1754 : 큰 수 비교
0
0
3
james_0823
2022년 8월 23일
In 소스 코드 제출
//import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for (int i = 0; i < n; i++) { // for (int k = 0; k < i; k++) { // System.out.print(" "); // } // for (int j = n; j > i; j--) { // System.out.print("*"); // } // System.out.println(); // } // // } //} //1355 : 삼각형 출력하기 3 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for(int i = 1; i <= (n/2)+1; i++) { // for(int p = 0; p < (n / 2)+1 - i; p++) { // System.out.print(" "); // } // for(int k = 0; k < i * 2 - 1; k++) { // System.out.print("*"); // } // System.out.println(); // } // } //} //1358 : 삼각형 출력하기 5 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int k = t.nextInt(); // // for(int i = 1; i <= n; i++) { // for(int j = 1; j <= n; j++) { // if(i == 1 || i == n || j == 1 || j == n) { // System.out.print("*"); // } else if((i + j -1)%k == 0) { // System.out.print("*"); // } else System.out.print(" "); // } // System.out.println(); // } // } //} //1369 : 빗금 친 사각형 출력하기 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int sum = 0; // // for(int i = 1; i <= n; i++) { // for(int j = 1; j <= i; j++) { // sum+=j; // } // } // System.out.println(sum); // } //} //1378 : 수열의 합 //1차원 배열(array) /* * 배열 array * 같은 자료형의 변수를 여러 개 만들 때 * * 기본 자료형 배열 int float char ... * 클래스 배열 String */ //import java.util.*; // //class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // //정수 배열 (int) // int n = t.nextInt(); // int[] arr = new int[n]; // // arr[0] ~ arr[49] 총 50칸 // for(int i=0;i<50;i++) // arr[i] = t.nextInt(); // // int[] arr1 = new int[51]; // // arr1[0] ~ arr1[50] // // double[] arr2 = new double[30]; // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int[] arr = new int[n]; // // for(int i = 0; i < arr.length; i++) { // arr[i] = t.nextInt(); // } // // for(int i = 0; i < arr.length; i++) { // for(int j = i; j < n; j++) { // System.out.print(arr[j] + " "); // } // for(int j = 0; j < i; j++) { // System.out.print(arr[j] + " "); // } // System.out.println(); // } // } //} //1405 : 숫자 로테이션 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int a[] = new int[10]; // // for(int i = 0; i < a.length; i++) { // a[i] = t.nextInt(); // } // int b = t.nextInt(); // System.out.println(a[b - 1]); // } //} //1409 : 기억력 테스트 1 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int a[] = new int[100]; // int i = 0; // // if(n == 0) { // System.out.println("0"); // } // while(n > 0) { // a[i] = n % 2; // n /= 2; // i++; // } // for(int j = i - 1; j >= 0; j--) { // System.out.print(a[j]); // } // } //} //1416 : 2진수 변환 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int a[] = new int[n]; // int i = 0; // // for(i=0;i<n;i++) { // a[i] = t.nextInt(); // } // // // for (i = 0; i < a.length; i++) { // System.out.print(i + 1 + ": "); // for (int j = 0; j < a.length; j++) { // if (i == j) { // continue; // } // if (a[i] == a[j]) { // System.out.print("= "); // } else if (a[i] < a[j]) { // System.out.print("< "); // } else if (a[i] > a[j]) { // System.out.print("> "); // } // } // System.out.println(); // } // } //} //1440 : 비교
0
0
1
james_0823
2022년 8월 18일
In 소스 코드 제출
//import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // while(true) { // char x = t.next().charAt(0); // System.out.println(x); // if(x == 'q') { // break; // } // } // } //} //원하는 문자가 입력될 때까지 반복 출력하기 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int cnt = 0; // // while(n > 0) { // n = n / 10; // cnt++; // } // System.out.println(cnt); // } //} //1278 : 자릿수 계산 /* n sum * 432 0 * 43 2 * 4 5 * 0 9 */ //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int sum = 0; // // while (n > 0) { // sum += n % 10; // n = n / 10; // } // System.out.println(sum); // } //} //4041 : 숫자 다루기 ///* //for(;;) //{ // //} // //while() //{ // //} // //do { // //}while(); //기초4-2. 중첩 반복문 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // for(int i=0;i<n;i++) { // for(int j=0;j<n;j++) { // if() System.out.print("*"); // else System.out.print(" "); // } // for(int j=0;j<n;j++) { // System.out.print("!"); // } // System.out.println(); // } // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for(int i = 0; i < n; i++) { // for(int j = 0; j < n; j++) { // System.out.print("*"); // } // System.out.println(); // } // } //} //사각형 출력하기 1 //import java.util.*; // //public class Main { // public static void main(String[] args) // { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for(int i = 1; i <= n; i++) { // // for(int j = 1; j <=n; j++) { // // if(i == 1 || i == n) { // System.out.print("*"); // } // else { // System.out.print("*"); // for(int j == 0; j <= n - 2; j++) { // System.out.print(""); // } // System.out.print("*"); // } // System.out.println(); // } // } // } //} //1356 : 사각형 출력하기 2 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for(int i = 1; i <= n; i++) { // for(int j = 1; j <= n; j++) { // if(i==1||i==n||j == 1 || j == n|| j == i || i+j==n+1 ) { // System.out.print("*"); // }else { // System.out.print(" "); // } // } // System.out.println(); // } // } //} //1365 : 사각형 출력하기 3 /* i j 1 9 n 2 8 n-1 3 7 n-2 i+j==n+1 */
0
0
1
james_0823
2022년 8월 16일
In 소스 코드 제출
//기초4-1. 단순 반복문 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int sum = 0; // // for(int i = 1; i <= n; i++) { // int m = t.nextInt(); // if(m%5==0) { // sum+=m; // } // } // System.out.println(sum); // } //} //1267 : n개의 수 중 5의 배수의 합 //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++) { // sum+= i; // if(a <= sum) { // System.out.println(i); // break; // } // } // } //} //1080 : [기초-종합] 언제까지 더해야 할까? //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int cnt = 0; // // for(int i = 0;i < n;i++) { // int k = t.nextInt(); // if(k%2 == 0) { // cnt++; // } // // } // System.out.println(cnt); // } //} //1268 : n개의 수 중 짝수의 개수 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int k; // for(int i = 1;;i++) { // if(i*i > n ) { // k=n-(i-1)*(i-1); // System.out.println(k + " " +(i-1)); // break; // } // } // } //} //1282 : 제곱수 만들기 /*(While문) for(시작식 ; 조건식; 증감식) { } 시작식; while(조건식) { 증감식; } import java.util.*; public class Main{ public static void main(String[] args) { // int n=10; // for(int i=n;i>=1;i--) // System.out.println(i); // // while(n>=1) { // System.out.println(n--); // } int n=452; // 45 4 0 int cnt=0; while(n!=0) { System.out.print(n%10); cnt++; n/=10; } } } */ //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // while(true) { // int n = t.nextInt(); // if(n == 0) // break; // System.out.println(n); // } // } //} //0 입력될 때까지 무한 출력하기1 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int sum = 0; // // while(n > 0) { // if(n%2 == 0) { // sum+=n; // } // n--; // } // System.out.println(sum); // } //} // 짝수 합 구하기 //1278 //4041(while)
0
0
5
james_0823
2022년 8월 11일
In 소스 코드 제출
기초4-1.단순 반복문(for) //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(); // // for(int i=a;i<=b;i++) { // if(i %2 !=0) { // System.out.print(i+" "); // } // } // } //} //1257 : 두 수 사이의 홀수 출력하기 //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 sum = 0; // // for(int i = a; i <= b; i++) { // if(i %3 == 0) { // sum += i; // // } // } // System.out.print(sum); // } //} //1260 : 3의 배수의 합 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int sum = 0; // // for (int i = 1; i <= n; i++) { // int m = t.nextInt(); // sum += m; // } // System.out.println(sum); // } //} //1266 : n개의 수의 합 //import java.util.Scanner; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int max = 0; // // for (int i = 1; i <= n; i++) { // int m = t.nextInt(); // if (max < m) { // max = m; // } // } // System.out.println(max); // } //} //1271 : 최댓값 구하기 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // for(int i = 1; i <= n; i++) { // if((n%i)==0) { // System.out.print(i + " "); // } // // } // } //} //1273 : 약수 구하기 //import java.util.Scanner; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int p = t.nextInt(); // boolean flag = false; // // for(int i = 2; i < p; i++) { // if(p%i == 0) { // flag=true; //not prime // break; // } // } // // if(flag) { // System.out.println("not prime"); // } // else { // System.out.println("prime"); // } // // } //} //1274 : 소수 판별 https://elukasoul.tistory.com/8 //import java.util.*; // //public class Main { // public static void main(String[] args) { // // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // int k = t.nextInt(); // int res = 1; //어떤 수의 0승이 1임으로 1로 초기화 // // for(int i = 0; i < k; i++) { // res*= n; // } // System.out.println(res); // } // //} //1275 : k 제곱 구하기
0
0
3
james_0823
2022년 8월 09일
In 소스 코드 제출
//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%2 == 0) // System.out.println(a); // // if(b%2 == 0) // System.out.println(b); // // if(c%2 == 0) // System.out.println(c); // } //} //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%2 == 0) // System.out.println("even"); // else // System.out.println("odd"); // // if(b%2 == 0) // System.out.println("even"); // else // System.out.println("odd"); // // if(c%2 == 0) // System.out.println("even"); // else // System.out.println("odd"); // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int x = t.nextInt(); // // if(x > 0) // System.out.println("plus"); // else // System.out.println("minus"); //입력받은 정수가 양OR음 인지를 확인 // // if(x%2 == 0) // System.out.println("even"); // else // System.out.println("odd"); //정수의 짝수 또는 홀수 구별 // } //} //[기초-조건/선택실행구조] 정수 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(); // int c = t.nextInt(); // // if(c < a + b && b < a + c && a < b + c) // System.out.println("yes"); // else // System.out.println("no"); // } //} //1212 : 삼각형의 성립 조건 //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) // System.out.println("삼각형아님"); // else if(a == b && b == c) // System.out.println("정삼각형"); // else if((a==b && b!=c) || (b==c && c!=a) || (a==c && a!=b)) // System.out.println("이등변삼각형"); // else if(a*a + b*b == c*c) // System.out.println("직각삼각형"); // else // System.out.println("삼각형"); // } //} //1218 : 삼각형 판단하기 //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int year = t.nextInt(); // int month = t.nextInt(); // // // if(month==4 || month==6 || month==9 || month==11) { // System.out.println("30"); // } // else if(month==2) { // 2 // if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) { // System.out.println("29"); // } // else { // System.out.println("28"); // } // } // else { // System.out.println("31"); // } // // } //} //1214 : 이 달은 며칠까지 있을까? 136줄
0
0
5
james_0823
2022년 8월 04일
In 소스 코드 제출
//import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // double x = t.nextDouble(); // // System.out.printf("%.2f", x); // } //} //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); // // char x = t.next().charAt(0); // // System.out.println((char)(x+1)); // } //} //1041 : [기초-산술연산] 문자 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(); // // System.out.println(a%b); // } //} //import java.util.*; // //public class Main{ // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // // n = (n / 10 + (n % 10 * 10)) * 2% 100; // System.out.println(n); // // if(n <= 50) // System.out.println("GOOD"); // else // System.out.println("OH MY GOD"); // } //} //1180 : 만능 휴지통 import java.util.*; public class Main { public static void main(String[] args) { Scanner t = new Scanner(System.in); int x = t.nextInt(); int y = t.nextInt(); if(y >= 30) { System.out.println(x + " " + (y-30)); } else if(x ) { System.out.println(x - 1 +" " + (y+30)); } else { System.out.println(x - 1 +" " + (y+30)); } } }
0
0
2
james_0823
2022년 8월 02일
In 소스 코드 제출
//public class Main { // public static void main(String[] args) { // System.out.println("HELLOxdfv jkl\n"); // System.out.println("asd"); // } //} //public class Main { // public static void main(String[] args) { // System.out.println("asd"); // } //} //intro //public class Main { // public static void main(String[] args) { // System.out.println("Hello"); // } //} //public class Main { // public static void main(String[] args) { // System.out.println("Hello World"); // } //} //public class Main { // public static void main(String[] args) { // System.out.println("Hello"); // System.out.println("World"); // } //} //public class Main { // public static void main(String[] args) { // System.out.println("'Hello'"); // } //} //public class Main { // public static void main(String[] args) { // System.out.println("\"Hello World\""); //1005 : [기초-출력] 출력하기05(설명) // } //} //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\""); //1007 : [기초-출력] 출력하기07(설명) // } //} //public class Main { // public static void main(String[] args) { // System.out.println("\u250C\u252C\u2510"); // System.out.println("") // } //public class Main { // public static void main(String[] args) { // System.out.println() // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int x = t.nextInt(); // int y = t.nextInt(); // System.out.println(x+y); // double x = t.nextDouble(); // // char x = t.next().charAt(0); // System.out.println(x); // // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // int n = t.nextInt(); // System.out.println(n); // } //} //1010 : [기초-입출력] 정수 1개 입력받아 그대로 출력하기(설명) //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // char x = t.next().charAt(0); // System.out.println(x); // } //} //import java.util.*; // //public class Main { // public static void main(String[] args) { // Scanner t = new Scanner(System.in); // // double x = t.nextDouble(); // System.out.printf("%.6f", x); // } //} //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.print(a); // System.out.print(" "); // System.out.println(b); // System.out.println(a+" " +b); // } //}
0
0
6
james_0823
2022년 7월 05일
In 소스 코드 제출
/* #include <stdio.h> int main() { printf("Hello,\n"); printf("World!"); return 0; }*/ /* #include <stdio.h> int main() { int h; int m; scanf("%d:%d", &h,&m); printf("%d:%d", h, m); return 0; } 정수/정수 정수몫 정수/실수 실수/정수 실수/실수 실수몫 */ /* #include <stdio.h> int main() { int a,b; //0 <= a, b <= 2147483647 scanf("%d %d", &a, &b); printf("%lld\n",(long long int)a+b); printf("%d\n", a-b); printf("%lld\n", (long long int)a*b); printf("%d\n", a/b); printf("%d\n", a%b); printf("%.2lf", (double)a/b); return 0; }*/ /* #include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%lld\n",(long long int)a+b+c); printf("%.1lf", (double)(a+b+c)/3); }*/ /* #include <stdio.h> int main() { int x; scanf("%d", &x); if(x%2 == 0) printf("even"); else printf("odd"); return 0; }*/ /* #include <stdio.h> int main() { double x; scanf("%lf", &x); if(x > 50 && x < 60) printf("win"); else printf("lose"); return 0; }*/ /* #include <stdio.h> int main() { int x, y, z; scanf("%d %d %d" ,&x, &y, &z); if(x <= 170 || y <= 170 || z <=170) printf("CRASH"); else printf("PASS"); return 0; }*/ /* #include <stdio.h> int main() { int i, n; scanf("%d", &n); for(i = 1; i<=n ; i++) printf("%d ", i); return 0; }*/ /* #include <stdio.h> int main() { int i, a, b; scanf("%d %d", &a, &b); if(a < b){ for(i = a; i <= b; i++) printf("%d ", i); } else for(i = b; i <= a; i++) printf("%d ", i); return 0; } i = i +1 ; i++; i = i - 1 ; i--; i=i+10; i+=10; i=i*3; i*=3; */ #include <stdio.h> int main() { double i, a, b; scanf("%lf %lf", &a, &b); for(i = a; i <= b; i+=0.01) printf("%.2lf ", i); return 0; }
0
0
2

james_0823

더보기
bottom of page