結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
agatan
|
| 提出日時 | 2015-05-04 13:33:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 449 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 64,360 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 18:53:03 |
| 合計ジャッジ時間 | 1,194 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <algorithm>
#define REP(i,n) for(int i;i<(n);i++)
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b, g;
long ap, bp;
cin >> a >> ap >> g;
cin >> b >> bp >> g;
if (ap > bp)
cout << a << endl;
else if (ap < bp)
cout << b << endl;
else cout << -1 << endl;
return 0;
}
agatan