結果
| 問題 | No.3418 【絶望】30個並列ごちゃ混ぜHit&Blowで遊ぼう! |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-12-25 04:12:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 893 bytes |
| 記録 | |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 96,744 KB |
| スコア | 0 |
| 平均クエリ数 | 380.35 |
| 最終ジャッジ日時 | 2025-12-25 04:12:52 |
| 合計ジャッジ時間 | 21,800 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 100 |
ソースコード
import sys
input = sys.stdin.readline
from itertools import combinations,permutations
from random import randint,shuffle
X=list(range(10))
L=list(combinations(X,5))
USE=set()
while True:
shuffle(L)
x=L.pop()
print("".join(map(str,x)),flush=True)
C=0
A=0
for i in range(30):
h,b=map(int,input().split())
if h+b==5 and h!=5:
C+=1
A+=1
if h==5 and b==0:
A+=1
if C>1:
L2=list(permutations(x))
while True:
shuffle(L2)
x2=L2.pop()
print("".join(map(str,x2)),flush=True)
C=0
for i in range(30):
h,b=map(int,input().split())
if h==5 and b==0:
C+=1
if A==C:
break
titia