結果

問題 No.201 yukicoderじゃんけん
ユーザー moti
提出日時 2015-11-18 04:04:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 675 ms
コンパイル使用メモリ 56,024 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-13 16:56:20
合計ジャッジ時間 1,119 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
string names[2]; string hensati[2]; string hoge;
for(int i=0;i<2;i++) {
cin >> names[i] >> hensati[i] >> hoge;
}
if(hensati[0].size()  < hensati[1].size()) {
cout << names[1] << endl;
}
else if(hensati[0].size() > hensati[1].size()) {
cout << names[0] << endl;
}
else {
cout << names[hensati[0] < hensati[1]] << endl;
}
return 0;
}
0