# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
94152 |
2019-01-16T11:51:41 Z |
bkinik |
Go (COCI16_go) |
C++14 |
|
2 ms |
380 KB |
#include<bits/stdc++.h>
using namespace std;
#define pob pop_back
#define mp make_pair
#define pb push_back
#define mid (l+r)/2
#define test printf("test\n")
#define st first
#define nd second
#define superman ios::sync_with_stdio(0);cin.tie(0);
typedef long long ll;
typedef pair<ll,ll> pll;
ll INF = 1e9;
ll mod = 1e9+7;
double pi = acos(-1);
ll l,k,m,n,ans,r;
int main() {
superman
//freopen("anan.gir","r",stdin);
//freopen(".cik","w",stdout);
cin>>n;
string str;
string ansstr;
cin>>str;
ansstr = str;
ll numevo=1;
ll numt=0;
cin>>k>>m;
ll ntt=0;
while(numevo!=0) {
numevo = m/k;
m-=numevo*k;
numt += numevo;
m += numevo*2;
}
cout<<str<<' '<<numt<<endl;
ans = numt;
ntt = ans;
for(int i=1; i<n; i++) {
cin>>str;
numt=0;
cin>>k>>m;
numevo = 1;
while(numevo!=0) {
numevo = m/k;
m-=numevo*k;
numt += numevo;
m += numevo*2;
}
ntt += numt;
if(numt > ans) ansstr = str,ans = numt;
cout<<str<<' '<<numt<<endl;
}
cout<<ntt<<endl<<ansstr<<endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Extra information in the output file |
2 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
3 |
Incorrect |
2 ms |
380 KB |
Extra information in the output file |
4 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
5 |
Incorrect |
2 ms |
256 KB |
Extra information in the output file |
6 |
Incorrect |
1 ms |
376 KB |
Extra information in the output file |
7 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
8 |
Incorrect |
2 ms |
252 KB |
Extra information in the output file |
9 |
Incorrect |
2 ms |
256 KB |
Extra information in the output file |
10 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
11 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
12 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
13 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
14 |
Incorrect |
2 ms |
256 KB |
Extra information in the output file |
15 |
Incorrect |
2 ms |
252 KB |
Extra information in the output file |
16 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
17 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
18 |
Incorrect |
2 ms |
380 KB |
Extra information in the output file |
19 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
20 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
21 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
22 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
23 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
24 |
Incorrect |
2 ms |
376 KB |
Extra information in the output file |
25 |
Incorrect |
2 ms |
252 KB |
Extra information in the output file |