結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
maine_honzuki
|
| 提出日時 | 2020-12-22 00:27:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 420 bytes |
| コンパイル時間 | 6,864 ms |
| コンパイル使用メモリ | 381,580 KB |
| 最終ジャッジ日時 | 2025-01-17 05:55:26 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using namespace boost::multiprecision;
int main() {
string S[2], P[2], X[2];
for (int i = 0; i < 2; i++) {
cin >> S[i] >> P[i] >> X[i];
}
cpp_int Pa(P[0]), Pb(P[1]);
if (Pa > Pb)
cout << S[0] << endl;
else if (Pb > Pa)
cout << S[1] << endl;
else
cout << -1 << endl;
}
maine_honzuki