結果

問題 No.201 yukicoderじゃんけん
ユーザー ikdikd
提出日時 2015-11-02 22:15:28
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 686 ms
コンパイル使用メモリ 68,460 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-11 08:11:46
合計ジャッジ時間 1,769 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 WA -
testcase_05 AC 2 ms
4,356 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,352 KB
testcase_08 AC 2 ms
4,352 KB
testcase_09 AC 1 ms
4,352 KB
testcase_10 AC 2 ms
4,352 KB
testcase_11 AC 1 ms
4,356 KB
testcase_12 AC 2 ms
4,356 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 2 ms
4,352 KB
testcase_18 AC 2 ms
4,352 KB
testcase_19 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<stdio.h>
#include<map>

using namespace std;

int main(){

    string sa, pa, xa, sb, pb, xb;
    cin>> sa>> pa>> xa;
    cin>> sb>> pb>> xb;
    map<string, string> mp;
    mp[sa] = pa;
    mp[sb] = pb;

    if(mp[sa]==mp[sb]){
        cout<< -1<< endl;
        return 0;
    }

    if(mp[sa] < mp[sb]){
        cout<< sb<< endl;
    }else{
        cout<< sa<< endl;
    }
    return 0;
}
0