3052
-
[bj 3052] c++ 풀이 및 bits/stdc++.hProgramming 기초/Coding Test 2024. 7. 19. 10:08
https://www.acmicpc.net/problem/3052 내 풀이#includeusing namespace std;int main(int argc, char** argv){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int array[43]={0}; int tmp; int cnt=0; while (cin >>tmp) { int remain = tmp%42; if (!array[remain]){ array[remain]=1; ++cnt; } } cout 찾아본 풀이#includeusing nam..