結果

問題 No.201 yukicoderじゃんけん
ユーザー 初見わこつです
提出日時 2015-09-25 16:46:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 499 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-19 09:13:55
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3

# This problem is http://yukicoder.me/problems/436

first_line  = input()
second_line = input()

point_A = first_line.split(' ')[1]
point_B = second_line.split(' ')[1]

if len(point_A) == len(point_B):
    if point_A == point_B:
        print(-1)
    elif point_A > point_B:
        print(first_line.split(' ')[0])
    else:
        print(second_line.split(' ')[0])
elif len(point_A) > len(point_B):
    print(first_line.split(' ')[0])
else:
    print(second_line.split(' ')[0])
0