結果

問題 No.201 yukicoderじゃんけん
ユーザー lam6er
提出日時 2025-03-20 18:43:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 380 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2025-03-20 18:43:58
合計ジャッジ時間 1,651 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

# Read the input lines for both players
a = input().split()
b = input().split()

sa, pa, xa = a
sb, pb, xb = b

# Compare the lengths first
if len(pa) > len(pb):
    print(sa)
elif len(pa) < len(pb):
    print(sb)
else:
    # If lengths are equal, perform lexicographical comparison
    if pa > pb:
        print(sa)
    elif pa < pb:
        print(sb)
    else:
        print(-1)
0