# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
711607 | scottchou | ACM (COCI19_acm) | C++17 | 2 ms | 340 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<bits/stdc++.h>
using namespace std;
int const N = 1005;
struct Person{
string name;
int p = 0, ac, id;
}a[N];
bool cmp(Person& x, Person& y){
if(x.ac != y.ac)
return x.ac > y.ac;
if(x.p != y.p)
return x.p < y.p;
return x.name < y.name;
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int n, m;
cin >> n >> m;
int nij = -1;
for(int i = 0; i < n; i++){
cin >> a[i].name;
string st;
a[i].id = i;
if(a[i].name == "NijeZivotJedanACM"){
nij = i;
for(int j = 0; j < m; j++){
cin >> st;
}
continue;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |