結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
greentea011
|
| 提出日時 | 2019-04-11 11:58:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 417 bytes |
| コンパイル時間 | 773 ms |
| コンパイル使用メモリ | 79,484 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 09:38:28 |
| 合計ジャッジ時間 | 1,399 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
#include <iostream>
#include <string>
#include <sstream>
#include <map>
int main() {
std::string s;
std::string n;
std::string p;
std::map<std::string,std::string> m;
while(std::getline(std::cin,s)) {
std::istringstream ss(s);
ss>>n>>p;
m.insert(std::make_pair(p,n));
}
if (m.size()==1) std::cout<<-1<<std::endl;
else std::cout<<m.rbegin()->second<<std::endl;
}
greentea011