結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-08-24 22:04:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 451 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 55,504 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 13:11:09 |
合計ジャッジ時間 | 1,001 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 10 |
ソースコード
#include<iostream> #include<string> int main() { std::string player1, player2; int 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; }