結果

問題 No.355 数当てゲーム(2)
ユーザー mkawa2mkawa2
提出日時 2019-12-26 17:43:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 1,605 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,832 KB
実行使用メモリ 45,952 KB
平均クエリ数 20.87
最終ジャッジ日時 2023-09-24 02:22:57
合計ジャッジ時間 11,960 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 162 ms
45,756 KB
testcase_01 AC 158 ms
45,648 KB
testcase_02 AC 163 ms
45,880 KB
testcase_03 AC 159 ms
45,496 KB
testcase_04 AC 157 ms
45,868 KB
testcase_05 AC 162 ms
45,668 KB
testcase_06 AC 159 ms
45,304 KB
testcase_07 AC 158 ms
45,732 KB
testcase_08 AC 159 ms
45,888 KB
testcase_09 AC 161 ms
45,316 KB
testcase_10 AC 158 ms
45,648 KB
testcase_11 AC 158 ms
45,652 KB
testcase_12 AC 159 ms
45,720 KB
testcase_13 AC 159 ms
45,516 KB
testcase_14 AC 159 ms
45,600 KB
testcase_15 AC 159 ms
45,928 KB
testcase_16 AC 159 ms
45,496 KB
testcase_17 AC 161 ms
45,908 KB
testcase_18 AC 157 ms
45,144 KB
testcase_19 AC 156 ms
45,464 KB
testcase_20 AC 158 ms
45,564 KB
testcase_21 AC 161 ms
45,848 KB
testcase_22 AC 158 ms
45,684 KB
testcase_23 AC 159 ms
45,456 KB
testcase_24 AC 159 ms
45,552 KB
testcase_25 AC 158 ms
45,748 KB
testcase_26 AC 163 ms
45,436 KB
testcase_27 AC 162 ms
45,452 KB
testcase_28 AC 158 ms
45,456 KB
testcase_29 AC 158 ms
45,488 KB
testcase_30 AC 158 ms
45,880 KB
testcase_31 AC 158 ms
45,352 KB
testcase_32 AC 158 ms
45,788 KB
testcase_33 AC 158 ms
45,892 KB
testcase_34 AC 159 ms
45,952 KB
testcase_35 AC 157 ms
45,680 KB
testcase_36 AC 158 ms
45,260 KB
testcase_37 AC 157 ms
45,888 KB
testcase_38 AC 156 ms
45,312 KB
testcase_39 AC 158 ms
45,400 KB
testcase_40 AC 158 ms
45,284 KB
testcase_41 AC 158 ms
45,912 KB
testcase_42 AC 157 ms
45,884 KB
testcase_43 AC 156 ms
45,452 KB
testcase_44 AC 155 ms
45,284 KB
testcase_45 AC 158 ms
45,644 KB
testcase_46 AC 158 ms
45,680 KB
testcase_47 AC 156 ms
45,452 KB
testcase_48 AC 155 ms
45,896 KB
testcase_49 AC 156 ms
45,620 KB
testcase_50 AC 157 ms
45,432 KB
testcase_51 AC 159 ms
45,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
from bisect import *
from math import *
from collections import *
from heapq import *
from random import *
import numpy as np
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def MF(): return map(float, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    print(0,1,2,3)
    x0,_=map(int,input().split())
    if x0==4:exit()
    print(4,5,6,7)
    x1,_=map(int,input().split())
    if x1==4:exit()
    ans=[]
    for i in range(4):
        base=[0,1,2,3]
        fin=False
        for a in range(4,10):
            base[i]=a
            print(*base)
            x,_=map(int,input().split())
            if x == 4: exit()
            if x<x0:
                ans.append(i)
                fin=True
                break
            if x>x0:
                ans.append(a)
                fin=True
                break
        if fin:continue
        base=[4,5,6,7]
        for a in range(4):
            base[i]=a
            print(*base)
            x,_=map(int,input().split())
            if x == 4: exit()
            if x>x1:
                ans.append(a)
                break
    print(*ans)
    input()

main()
0