結果

問題 No.355 数当てゲーム(2)
コンテスト
ユーザー ebicochineal
提出日時 2016-04-01 23:29:08
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 560 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 573 ms
コンパイル使用メモリ 20,956 KB
実行使用メモリ 39,724 KB
平均クエリ数 47.77
最終ジャッジ日時 2026-03-30 21:51:04
合計ジャッジ時間 22,448 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29 WA * 5 RE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

a = [0, 0, 0, 0]
b = [0, 1, 2, 3]
c = a[:]
n = 0
f = 1
for i in range(10):
    print(i%10, (i+3)%10, (i+6)%10, (i+9)%10)
    x, y = map(int, input().split())
    if x > 3 :
        f = 0
        break
    if x + y < 1:
        b = [i%10, (i+3)%10, (i+6)%10, (i+9)%10]
        break
a = b[:]
while f:
    a[n] = (a[n]+1)%10
    if a[n] in b:
        continue
    print(a[0], a[1], a[2], a[3])
    x, y = map(int, input().split())
    if x > 0:
        c[n] = a[n]
        n += 1
        a = b[:]
    if n > 3:
        print(c[0], c[1], c[2], c[3])
        break
0