Notice
Recent Posts
목록C++ (22)
천천히 빛나는
백준 단계 2 : 조건문 (C++)
1330. 두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오. #include using namespace std; int main() { int a, b; cin >> a >> b; if (a > b) { cout = 90) { cout = 80) { cout = 70) { cout = 60) { cout year; if ((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) { cout x >> y; if ((x > 0) && (y > 0)) { cout c; a += c / 60; b += c % 60; if (b >= 60) { b -= 60; a += 1; } if (a >= 24) { a -= 24; } cout ..
C++/BAEKJOON (C++)
2023. 8. 14. 16:13
백준 단계 1 : 입출력과 사칙연산 (C++)
2557. Hello World!를 출력하시오. #include using namespace std; int main(){ cout A >> B; cout > a >> b;와 같이 계속해서 입력을 받을 수 있다. 1001. 두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오. #include using namespace std; int main(){ int A, B; cin >> A >> B; cout > A >> B; cout > A >> B; cout > B; cout
C++/BAEKJOON (C++)
2023. 8. 13. 18:17