[알고리즘] 백준 2547 - 사탕 선생 고창영 (C++) [문제 링크] : https://www.acmicpc.net/problem/2547#include using namespace std;int T;int main(){ long long N, Cnt, inp; cin >> T; while(T--){ Cnt = 0; cin >> N; for(int i=0; i> inp; Cnt = (Cnt + inp) % N; } if(Cnt % N != 0){ cout 알고리즘 2025.03.08