結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2025-03-20 20:32:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 53,192 KB |
最終ジャッジ日時 | 2025-03-20 20:33:11 |
合計ジャッジ時間 | 1,633 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
# 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)