結果

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

ソースコード

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
while x < 4:
    n = [y for y in range(4) if l[y]][0]
    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 > t : l[n], t = 0, x
    elif x < t : a[n], l[n], m = (a[n]-m)%10, 0, 1
0