結果
| 問題 |
No.355 数当てゲーム(2)
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2023-12-26 07:56:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 574 bytes |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,600 KB |
| 平均クエリ数 | 25.54 |
| 最終ジャッジ日時 | 2024-09-27 15:00:51 |
| 合計ジャッジ時間 | 6,047 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
ソースコード
import itertools
use=[]
lst=[]
for i in range(7):
print(i,7,8,9)
X,Y=map(int,input().split())
if (X,Y)==(4,0):
exit()
lst.append(X+Y)
ma=max(lst)
for i in range(7):
if lst[i]==ma:
use.append(i)
lst=[]
for i in range(3,10):
print(0,1,2,i)
X,Y=map(int,input().split())
if (X,Y)==(4,0):
exit()
lst.append(X+Y)
ma=max(lst)
for i in range(7,10):
if lst[i-3]==ma:
use.append(i)
for tpl in itertools.permutations(use):
print(*tpl)
X,Y=map(int,input().split())
if (X,Y)==(4,0):
exit()
vwxyz