結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
|
提出日時 | 2019-03-11 16:09:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 628 ms |
コンパイル使用メモリ | 57,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 15:34:51 |
合計ジャッジ時間 | 1,232 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string name[2]; string yp[2]; string h[2]; for (int i = 0; i < 2; i++) { cin >> name[i] >> yp[i] >> h[i]; } if (yp[0].size() > yp[1].size()) cout << name[0] << endl; else if (yp[0].size() < yp[1].size()) cout << name[1] << endl; else { if (yp[0] > yp[1]) { cout << name[0] << endl; } else if (yp[0] < yp[1]) { cout << name[1] << endl; } else cout << "-1" << endl; } return 0; }