結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-10 21:06:18 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 548µs | |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 71,140 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-27 20:27:39 |
| 合計ジャッジ時間 | 1,612 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;int main(){string q,b,p,d,a="-1";cin>>q>>b>>p>>p>>d;int g=b.size(),h=d.size(),i;if(g>h)a=q;else if(g==h){for(i=0;i<g;i++){if(b[i]>d[i]){a=q;break;}else if(b[i]<d[i]){a=p;break;}}}else a=p;cout<<a;}