結果

問題 No.201 yukicoderじゃんけん
ユーザー maspy
提出日時 2023-07-22 15:43:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 154 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,032 KB
最終ジャッジ日時 2024-09-22 15:25:45
合計ジャッジ時間 1,664 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.set_int_max_str_digits(10**6)

A = readline().split()
B = readline().split()

PA = int(A[1])
PB = int(B[1])

if PA > PB:
    print(A[0].decode())
elif PA == PB:
    print(-1)
else:
    print(B[0].decode())
0