結果

問題 No.632 穴埋め門松列
ユーザー RyutoRyuto
提出日時 2018-01-23 18:46:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 291 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 71,024 KB
最終ジャッジ日時 2023-08-26 23:50:51
合計ジャッジ時間 1,614 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,916 KB
testcase_01 AC 70 ms
71,024 KB
testcase_02 AC 73 ms
70,904 KB
testcase_03 AC 71 ms
70,740 KB
testcase_04 AC 73 ms
70,560 KB
testcase_05 AC 70 ms
70,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

indat = input().split()
qindex = indat.index('?')

if qindex == 0:
    if int(indat[1]) < int(indat[2]):
        print('4')
    else:
        print('1')
elif qindex == 1:
    print('14')
elif qindex == 2:
    if int(indat[0]) > int(indat[1]):
        print('4')
    else:
        print('1')
0