結果
| 問題 | No.3418 【絶望】30個並列ごちゃ混ぜHit&Blowで遊ぼう! |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-12-25 04:18:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 930 bytes |
| 記録 | |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 82,712 KB |
| 実行使用メモリ | 95,964 KB |
| スコア | 9,801,833 |
| 平均クエリ数 | 1981.68 |
| 最終ジャッジ日時 | 2025-12-25 04:19:14 |
| 合計ジャッジ時間 | 35,606 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 99 RE * 1 |
ソースコード
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>0:
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
if A==30:
break
titia