반응형 [SWEA] D1: 연월일 달력(2056) 해설 문제- 문제 링크: 연월일 달력 풀이(C++)solution 1)- 시간 복잡도: 더보기더보기#include#includeusing namespace std;bool is_valid(string month, string day) { int m = stoi(month); int d = stoi(day); if ((m 12)) return false; if (m == 2) { if ((d 28)) return false; } switch(m) { case 1: case 3: case 5: case 7: case 8: case 10: .. 2025. 1. 31. [SWEA] D1: 큰 놈, 작은 놈, 같은 놈(2070) 해설 문제- 문제 링크: 큰 놈, 작은 놈, 같은 놈 풀이(C++)solution 1)- 시간 복잡도: 더보기더보기#includeusing namespace std;int main(int argc, char** argv){ int test_case; int T; cin>>T; for(test_case = 1; test_case > a >> b; if (a > b) cout " (Java)solution 1)- 시간 복잡도: 더보기더보기import java.util.* (Python)solution 1)- 시간 복잡도: 더보기더보기import sysT = int(input())for test_case in range(1, T + 1): a, b = map.. 2025. 1. 31. 이전 1 다음 반응형