結果

問題 No.201 yukicoderじゃんけん
ユーザー tarotaro789tarotaro789
提出日時 2017-04-16 22:44:55
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 374 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,928 KB
最終ジャッジ日時 2023-09-26 09:05:54
合計ジャッジ時間 1,588 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,896 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 16 ms
7,724 KB
testcase_03 AC 16 ms
7,924 KB
testcase_04 AC 16 ms
7,804 KB
testcase_05 AC 16 ms
7,744 KB
testcase_06 AC 15 ms
7,736 KB
testcase_07 AC 16 ms
7,908 KB
testcase_08 AC 16 ms
7,688 KB
testcase_09 AC 16 ms
7,816 KB
testcase_10 AC 16 ms
7,928 KB
testcase_11 AC 16 ms
7,920 KB
testcase_12 AC 16 ms
7,696 KB
testcase_13 AC 16 ms
7,748 KB
testcase_14 AC 16 ms
7,744 KB
testcase_15 AC 16 ms
7,728 KB
testcase_16 AC 16 ms
7,828 KB
testcase_17 AC 16 ms
7,732 KB
testcase_18 AC 21 ms
7,800 KB
testcase_19 AC 19 ms
7,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input().split())
k=list(input().split())
if len(s[1])>len(k[1]):
    print(s[0])
elif len(s[1])<len(k[1]):
    print(k[0])
else:
    for i in range(len(s[1])):
        if s[1][i]>k[1][i]:
            print(s[0])
            break
        if s[1][i]<k[1][i]:
            print(k[0])
            break
        if i==len(s[1])-1:
            print(-1)
            break
0