# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
398841 | Alexandra | Go (COCI16_go) | C++14 | 2 ms | 320 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n, resp, max;
cin >> n;
string out;
for (int i=0; i<n; i++) {
long long m;
int k;
string poke;
cin >> poke;
cin >> k >> m;
int a=0;
while (m>=k) {
resp++;
m = m - k + 2;
a++;
}
if (a>max) {
max = a;
out = poke;
}
}
cout << resp << endl;
cout << out;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |