結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2015-08-25 10:41:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 656 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 55,672 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 13:20:27 |
合計ジャッジ時間 | 992 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#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.size() == player2_point.size()) { 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; } else { if (player1_point.size() > player2_point.size())std::cout << player1 << std::endl; else std::cout << player2 << std::endl; } return 0; }