結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
kiyunetsubamna
|
| 提出日時 | 2015-05-19 09:41:46 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 499 ms |
| コンパイル使用メモリ | 59,088 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 05:42:41 |
| 合計ジャッジ時間 | 1,110 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include<iostream>
#include <math.h>
#include <string>
using namespace std;
int main(){
string s1;
string s2;
int p1;
int p2;
string x1;
string x2;
cin >> s1;
cin >> p1;
cin >> x1;
cin >> s2;
cin >> p2;
cin >> x2;
if (p1 > p2){
cout << s1 << endl;
}
else if (p1 < p2){
cout << s2 << endl;
}
else{
cout << "-1" << endl;
}
return 0;
}
kiyunetsubamna