結果
問題 |
No.8042 本棚
|
ユーザー |
![]() |
提出日時 | 2019-04-01 21:56:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 416 bytes |
コンパイル時間 | 1,579 ms |
コンパイル使用メモリ | 177,296 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-26 22:36:38 |
合計ジャッジ時間 | 2,507 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 24 |
ソースコード
#include "bits/stdc++.h" using namespace std; const string mp[] = {"iti", "ni", "san", "yon"}; void solve(void) { int n; cin >> n; set<pair<string, int>> dic; while(n--) { string k, id; cin >> k >> id; dic.insert(make_pair(k, find(mp, mp + 4, id) - mp)); } for (auto p : dic) cout << p.first << ' ' << p.second << endl; } int main(void) { solve(); //cout << "yui(*-v・)yui" << endl; return 0; }