結果

問題 No.355 数当てゲーム(2)
ユーザー ebicochineal
提出日時 2016-04-02 01:20:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 436 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 54,948 KB
最終ジャッジ日時 2024-07-16 23:24:12
合計ジャッジ時間 6,531 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 51
権限があれば一括ダウンロードができます

ソースコード

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 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
        if x > 3 : break
        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