結果

問題 No.355 数当てゲーム(2)
ユーザー mkawa2mkawa2
提出日時 2019-12-26 17:35:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 1,505 bytes
コンパイル時間 726 ms
コンパイル使用メモリ 10,812 KB
実行使用メモリ 46,108 KB
平均クエリ数 20.90
最終ジャッジ日時 2023-09-23 19:21:18
合計ジャッジ時間 12,007 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
45,608 KB
testcase_01 AC 156 ms
45,108 KB
testcase_02 AC 150 ms
45,312 KB
testcase_03 AC 147 ms
45,540 KB
testcase_04 AC 151 ms
45,364 KB
testcase_05 AC 153 ms
45,116 KB
testcase_06 AC 152 ms
45,268 KB
testcase_07 AC 147 ms
45,468 KB
testcase_08 AC 147 ms
45,228 KB
testcase_09 AC 146 ms
45,052 KB
testcase_10 AC 155 ms
45,664 KB
testcase_11 AC 150 ms
45,576 KB
testcase_12 AC 146 ms
45,504 KB
testcase_13 AC 151 ms
45,352 KB
testcase_14 AC 148 ms
45,136 KB
testcase_15 AC 151 ms
45,600 KB
testcase_16 AC 150 ms
45,616 KB
testcase_17 AC 146 ms
45,552 KB
testcase_18 AC 147 ms
45,588 KB
testcase_19 AC 148 ms
45,632 KB
testcase_20 AC 145 ms
45,488 KB
testcase_21 AC 150 ms
44,972 KB
testcase_22 AC 148 ms
45,528 KB
testcase_23 AC 144 ms
45,720 KB
testcase_24 AC 154 ms
45,804 KB
testcase_25 AC 152 ms
45,768 KB
testcase_26 AC 154 ms
45,056 KB
testcase_27 AC 152 ms
45,324 KB
testcase_28 AC 151 ms
45,568 KB
testcase_29 AC 149 ms
45,568 KB
testcase_30 AC 152 ms
45,340 KB
testcase_31 AC 151 ms
45,344 KB
testcase_32 AC 150 ms
45,336 KB
testcase_33 AC 152 ms
45,360 KB
testcase_34 AC 152 ms
45,132 KB
testcase_35 RE -
testcase_36 AC 149 ms
45,640 KB
testcase_37 AC 152 ms
45,508 KB
testcase_38 AC 147 ms
45,024 KB
testcase_39 AC 148 ms
45,720 KB
testcase_40 AC 148 ms
45,404 KB
testcase_41 AC 147 ms
45,624 KB
testcase_42 AC 147 ms
45,732 KB
testcase_43 AC 150 ms
45,140 KB
testcase_44 AC 148 ms
45,512 KB
testcase_45 AC 145 ms
45,596 KB
testcase_46 AC 143 ms
45,568 KB
testcase_47 AC 146 ms
45,612 KB
testcase_48 AC 148 ms
44,908 KB
testcase_49 AC 149 ms
45,368 KB
testcase_50 AC 149 ms
45,416 KB
testcase_51 RE -
権限があれば一括ダウンロードができます

ソースコード

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())
    print(4,5,6,7)
    x1,_=map(int,input().split())
    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<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>x1:
                ans.append(a)
                break
    print(*ans)
    input()

main()
0