結果

問題 No.355 数当てゲーム(2)
ユーザー ebicochineal
提出日時 2016-04-02 01:21:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 498 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,728 KB
平均クエリ数 15.46
最終ジャッジ日時 2024-07-16 09:33:57
合計ジャッジ時間 5,414 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 51 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

a, l = [0, 1, 2, 3], [1, 1, 1, 1]
print(a[0], a[1], a[2], a[3])
x = t = int(input()[0])
n, m = 0, 1
if x < 4:
    while 1:
        n = (n-1)%4
        if l[n]:
            b = a[:]
            a[n] = (a[n]+1)%10
            if a[n] in b:
                n, m = (n+1)%4, m+1
                continue
            print(a[0], a[1], a[2], a[3])
            x = int(input()[0])
            if x > 3 : break
            if x > t : l[n], t = 0, x
            elif x < t : a[n], l[n], m = (a[n]-m)%10, 0, 1
0