結果

問題 No.201 yukicoderじゃんけん
ユーザー szkakeszkake
提出日時 2015-08-24 14:01:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 350 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-25 16:42:03
合計ジャッジ時間 1,585 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,860 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 16 ms
7,828 KB
testcase_03 AC 16 ms
7,872 KB
testcase_04 AC 16 ms
7,764 KB
testcase_05 AC 16 ms
7,828 KB
testcase_06 AC 16 ms
7,892 KB
testcase_07 AC 16 ms
7,888 KB
testcase_08 AC 15 ms
7,824 KB
testcase_09 AC 15 ms
7,956 KB
testcase_10 AC 16 ms
7,744 KB
testcase_11 AC 16 ms
7,792 KB
testcase_12 AC 15 ms
7,772 KB
testcase_13 AC 15 ms
7,768 KB
testcase_14 AC 16 ms
7,772 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
# http://yukicoder.me/problems/436
# janken = lambda a, b: (b - a + 1) % 3 - 1
# m = {'R': 0, 'S': 1, 'P': 2}
if __name__ == '__main__':
    a, b = (input().split() for n in range(2))
    sa, pa, xa = a[0], int(a[1]), a[2]
    sb, pb, xb = b[0], int(b[1]), b[2]

    s = ""
    print(-1 if pa == pb else sa if pa > pb else sb)
0