Submission #5829484
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
map<pair<string, int>, int> A;
string s;
int num;
for(int i=0; i<n; ++i){
cin >> s >> num;
//A.insert(make_pair(make_pair(s, 100-num),i+1));
A.insert({{s, -num},i+1});
}
//sort(A.begin(),A.end());
for(auto it=A.begin(); it!=A.end(); it++){
cout << (*it).second << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Guidebook |
| User | esgsms |
| Language | C++14 (GCC 5.4.1) |
| Score | 200 |
| Code Size | 402 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 256 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 01.txt, 02.txt |
| All | 01.txt, 02.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 1 ms | 256 KiB |
| 02.txt | AC | 1 ms | 256 KiB |
| 11.txt | AC | 1 ms | 256 KiB |
| 12.txt | AC | 1 ms | 256 KiB |
| 13.txt | AC | 1 ms | 256 KiB |
| 14.txt | AC | 1 ms | 256 KiB |
| 15.txt | AC | 1 ms | 256 KiB |