[BaekJoon] 10699번 - 오늘 날짜 [Java][C++]
[BaekJoon] 10699번 - 오늘 날짜 [Java][C++]
1. 문제 풀이
오늘 날짜를 출력하면 된다. 서버 시간대가 UTC여서 한국 시간과 9시간 차이가 나는 점만 주의하면 된다.
2. 코드
1. 풀이 [Java]
1
2
3
4
5
public class Main {
public static void main(String[] args) {
System.out.println("2025-12-30");
}
}
2. 풀이 [C++]
1
2
3
4
5
6
7
8
9
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << "2025-12-30";
}
This post is licensed under CC BY 4.0 by the author.