結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-03-21 02:07:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 63,416 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 23:50:33 |
合計ジャッジ時間 | 1,237 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
ソースコード
//工夫せずに辞書順比較してWAになるか確認 #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main(){ vector<string> A(3); vector<string> B(3); cin >> A[0] >> A[1] >> A[2]; cin >> B[0] >> B[1] >> B[2]; if(A[1] == B[1]){ cout << -1 << endl; }else{ cout << (A[1]>B[1]?A[0]:B[0]) << endl; } return 0; }