結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2016-05-24 12:35:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 1,666 ms |
コンパイル使用メモリ | 170,232 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 05:07:44 |
合計ジャッジ時間 | 2,300 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main (){cin.tie(0);ios::sync_with_stdio(false);vector<string> N(2);string R1,R2,P1,P2;cin >> N[0] >> R1 >> P2 >> N[1] >> R2 >> P2;cout << ( R1 == R2 ? "-1" : N[ R1.size() > R2.size() || ( R1.size() == R2.size() && R1 > R2 ) ? 0 : 1 ] ) << endl;return 0;}