SWEA (3) 썸네일형 리스트형 [SWEA] 2948번 문자열 교집합 (C++) #include #include using namespace std; unordered_set s; int main(int argc, char** argv) { ios::sync_with_stdio(false); cin.tie(NULL); int test_case; int T; cin>>T; for(test_case = 1; test_case > n >> m; int size = n + m; for(int i = 0; i > str; s.insert(str); } cout [SWEA] 3233번 정삼각형 분할 놀이 (C++) #include using namespace std; int main(int argc, char** argv) { int test_case; int T; cin>>T; for(test_case = 1; test_case > a >> b; long long ans = (a * a)/(b * b); cout [SWEA] 7532번 세영이의 SEM력 연도 (C++) 시간초과 코드 #include using namespace std; int main(int argc, char** argv) { int test_case; int T; cin>>T; for(test_case = 1; test_case > s >> e >> m; int num = 1; while(true){ if((num - s) % 365 == 0 && (num - e) % 24 == 0 && (num - m) % 29 == 0) break; num++; } cout e >> m; for(k = s; ; k += 365){ if((k - e) % 24 == 0 && (k - m) % 29 == 0) break; } cout 이전 1 다음