結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2015-08-25 10:37:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 459 bytes |
コンパイル時間 | 460 ms |
コンパイル使用メモリ | 55,412 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 13:20:25 |
合計ジャッジ時間 | 1,045 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
ソースコード
#include<iostream> #include<string> int main() { std::string player1, player2; std::string player1_point, player2_point; char player1_te, player2_te; std::cin >> player1 >> player1_point >> player1_te; std::cin >> player2 >> player2_point >> player2_te; if (player1_point == player2_point) std::cout << -1 << std::endl; else if (player1_point > player2_point) std::cout << player1 << std::endl; else std::cout << player2 << std::endl; return 0; }