結果

問題 No.632 穴埋め門松列
ユーザー na-sh
提出日時 2019-07-08 12:43:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 316 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-08 04:55:56
合計ジャッジ時間 802 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

c = input().split()

q = c.index('?')
if q == 0:
    a = int(c[1])
    b = int(c[2])
    if a < b:
        print('4')
    else:
        print('1')
elif q == 1:
    a = int(c[0])
    b = int(c[2])
    print('14')
else:
    a = int(c[0])
    b = int(c[1])
    if a < b:
        print('1')
    else:
        print('4')
0