結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-05-05 22:32:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 554 ms |
コンパイル使用メモリ | 67,324 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 19:09:08 |
合計ジャッジ時間 | 1,195 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 14 |
ソースコード
#include <iostream> #include <string> #include <map> using namespace std; int main() { map<int, string> a; string x, y; int z; cin>>x>>z>>y; a[z]=x; cin>>x>>z>>y; a[z]=x; cout<<(a.size()==1 ? "-1" : (++(a.begin()))->second)<<endl; }