[9498/Cpp] ์ํ ์ฑ์ #include using namespace std; int main(){ int a; scanf("%d", &a); if (a=90) printf("A"); else if (a=80) printf("B"); else if (a=70) printf("C"); else if (a=60) printf("D"); else printf("F"); return 0; } ๐โ๏ธBaekjoon/C++ 2021.09.03
[1330/Cpp] ๋ ์ ๋น๊ตํ๊ธฐ #include using namespace std; int main(){ int a,b; cin >> a >> b ; if (a>b) cout ๐โ๏ธBaekjoon/C++ 2021.09.03
[2884/JAVA] ์๋ ์๊ณ import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); //45 + if (b >= 45) { b-=45; System.out.printf("%d %d", a ,b); } else if (a == 0) { a += 23; b = (60+b)-45; System.out.printf("%d %d", a ,b); } else { a -= 1; b = (60+b)-45; System.out.printf("%d %d", a ,b); } } } ์กฐ๊ฑด๋ง ์ ์๊ฐํด์ ์ฝ๋ฉํด์ฃผ๋ฉด .. ๐โ๏ธBaekjoon/Java 2021.09.03
[14681/JAVA] ์ฌ๋ถ๋ฉด ๊ณ ๋ฅด๊ธฐ import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); //++ 1 if ( a >0 && b >0) System.out.printf("1"); //-+ 2 else if ( a 0) System.out.printf("2"); // -- 3 else if ( a 0 && b ๐โ๏ธBaekjoon/Java 2021.09.03
[2753/JAVA] ์ค๋ import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a%4 == 0){ //4์๋ฐฐ์์ด๊ณ if (a%100 != 0){ System.out.printf("1"); } else if (a%400 == 0){ System.out.printf("1"); } else { System.out.printf("0"); } } else System.out.printf("0"); } }โ import java.util.Scanner; public class Main { public static void main.. ๐โ๏ธBaekjoon/Java 2021.09.02
[9498/JAVA] ์ํ ์ฑ์ import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a=90) System.out.printf("A"); else if (a=80) System.out.printf("B"); else if (a=70) System.out.printf("C"); else if (a=60) System.out.printf("D"); else System.out.printf("F"); } } ๐โ๏ธBaekjoon/Java 2021.09.02
[1330/JAVA] ๋ ์ ๋น๊ตํ๊ธฐ import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a>b) { System.out.printf(">"); } else if (a ๐โ๏ธBaekjoon/Java 2021.09.02
[10430/Cpp] ๋๋จธ์ง #include using namespace std; int main(){ int A,B; scanf("%d %d ", &A, &B); printf("%d\n",A*(B%10)); printf("%d\n",A*((B/10)%10)); printf("%d\n",A*(B/100)); printf("%d",A*B); return 0; } ๐โ๏ธBaekjoon/C++ 2021.09.02
[10869/Cpp] ์ฌ์น์ฐ์ฐ #include #include using namespace std; int main(){ int a,b; scanf("%d %d", &a,&b); printf("%d\n",a+b); printf("%d\n",a-b); printf("%d\n",a*b); printf("%d\n",a/b); printf("%d",a%b); return 0; } ๐โ๏ธBaekjoon/C++ 2021.09.02
[1008/Cpp] A/B #include #include using namespace std; int main(){ double a,b; scanf("%lf %lf", &a, &b); printf("%.10lf",a/b); return 0; } ์๋์ค์ฐจ๊ฐ 10-9 ์ดํ์ด๋ฉด ์ ๋ต์ด๋ค. => ์ถ๋ ฅ๋ฒ์ ์กฐ์ ๐โ๏ธBaekjoon/C++ 2021.09.02