1316A1 [코드포스] 1316A : Grade Allocation https://codeforces.com/problemset/problem/1316/A Problem - 1316A - Codeforces codeforces.com #include using namespace std; //typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int tc; cin >> tc; while (tc--) { int n, m, sum = 0; cin >> n >> m; vector v; for (int i = 0; i > s; sum += s; v.push_back(s); } if (m > sum) cout 2020. 7. 1. 이전 1 다음