結果

問題 No.355 数当てゲーム(2)
ユーザー ebicochinealebicochineal
提出日時 2016-04-02 00:48:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 643 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,856 KB
実行使用メモリ 24,484 KB
平均クエリ数 15.46
最終ジャッジ日時 2023-09-23 10:01:57
合計ジャッジ時間 5,117 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
24,060 KB
testcase_01 AC 39 ms
23,652 KB
testcase_02 AC 39 ms
23,548 KB
testcase_03 AC 39 ms
23,552 KB
testcase_04 AC 39 ms
23,720 KB
testcase_05 AC 39 ms
23,616 KB
testcase_06 AC 40 ms
23,768 KB
testcase_07 AC 39 ms
23,672 KB
testcase_08 AC 40 ms
23,516 KB
testcase_09 AC 44 ms
23,708 KB
testcase_10 AC 39 ms
23,492 KB
testcase_11 AC 38 ms
23,796 KB
testcase_12 AC 39 ms
23,440 KB
testcase_13 AC 40 ms
23,892 KB
testcase_14 AC 39 ms
23,556 KB
testcase_15 AC 39 ms
23,892 KB
testcase_16 AC 40 ms
24,120 KB
testcase_17 AC 39 ms
23,604 KB
testcase_18 AC 39 ms
23,676 KB
testcase_19 AC 39 ms
24,048 KB
testcase_20 AC 40 ms
23,520 KB
testcase_21 AC 40 ms
24,036 KB
testcase_22 AC 39 ms
24,036 KB
testcase_23 AC 39 ms
24,048 KB
testcase_24 AC 39 ms
24,088 KB
testcase_25 AC 39 ms
24,064 KB
testcase_26 AC 38 ms
23,468 KB
testcase_27 AC 39 ms
23,652 KB
testcase_28 AC 39 ms
23,744 KB
testcase_29 AC 38 ms
24,360 KB
testcase_30 AC 40 ms
24,408 KB
testcase_31 AC 38 ms
24,040 KB
testcase_32 AC 39 ms
23,676 KB
testcase_33 AC 39 ms
24,348 KB
testcase_34 AC 39 ms
24,016 KB
testcase_35 AC 37 ms
23,724 KB
testcase_36 AC 38 ms
23,388 KB
testcase_37 AC 39 ms
23,768 KB
testcase_38 AC 40 ms
23,628 KB
testcase_39 AC 40 ms
24,024 KB
testcase_40 AC 40 ms
24,096 KB
testcase_41 AC 43 ms
23,744 KB
testcase_42 AC 39 ms
23,504 KB
testcase_43 AC 41 ms
24,016 KB
testcase_44 AC 39 ms
24,264 KB
testcase_45 RE -
testcase_46 AC 43 ms
23,776 KB
testcase_47 AC 38 ms
23,784 KB
testcase_48 AC 41 ms
23,592 KB
testcase_49 AC 39 ms
23,768 KB
testcase_50 AC 39 ms
23,712 KB
testcase_51 AC 38 ms
24,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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