2017-03-15から1日間の記事一覧
paiza.jp #include <iostream> using namespace std; void Solve(int n) { int m, t, time = 60*n, count = 0; cin >> m; for (count=0; count<m; ++count) { cin >> t; time -= t; if (time <= 0) break; } if (m == count) cout << "OK" << endl; else cout << count << endl; } int main</m;></iostream>…