結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
158b
|
| 提出日時 | 2015-05-14 23:26:36 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 62,880 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 03:46:27 |
| 合計ジャッジ時間 | 1,049 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
using namespace std;
int main(){
string name[2];
string score[2];
string te[2];
cin >> name[0] >> score[0] >> te[0];
cin >> name[1] >> score[1] >> te[1];
score[0] += (char)0;
score[1] += (char)0;
if(score[0] > score[1]){
cout << name[0] << endl;
}else if(score[0] < score[1]){
cout << name[1] << endl;
}else{
cout << -1 << endl;
}
return 0;
}
158b