QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#708410 | #7179. Fischer's Chess Guessing Game | siquy3001 | RE | 17ms | 11152kb | Python3 | 11.7kb | 2024-11-03 22:02:12 | 2024-11-03 22:02:12 |
Judging History
answer
import sys
sys.stdout.flush()
from random import randint
def cnt(a,b):
res=0
for i in range(8):
res+=int(a[i]==b[i])
return res
while True:
a=input()
if a=="END":break
s = ['BBNNQRKR', 'BBNNRKQR', 'BBNNRKRQ', 'BBNNRQKR', 'BBNQNRKR', 'BBNQRKNR', 'BBNQRKRN', 'BBNQRNKR', 'BBNRKNQR', 'BBNRKNRQ', 'BBNRKQNR', 'BBNRKQRN', 'BBNRKRNQ', 'BBNRKRQN', 'BBNRNKQR', 'BBNRNKRQ', 'BBNRNQKR', 'BBNRQKNR', 'BBNRQKRN', 'BBNRQNKR', 'BBQNNRKR', 'BBQNRKNR', 'BBQNRKRN', 'BBQNRNKR', 'BBQRKNNR', 'BBQRKNRN', 'BBQRKRNN', 'BBQRNKNR', 'BBQRNKRN', 'BBQRNNKR', 'BBRKNNQR', 'BBRKNNRQ', 'BBRKNQNR', 'BBRKNQRN', 'BBRKNRNQ', 'BBRKNRQN', 'BBRKQNNR', 'BBRKQNRN', 'BBRKQRNN', 'BBRKRNNQ', 'BBRKRNQN', 'BBRKRQNN', 'BBRNKNQR', 'BBRNKNRQ', 'BBRNKQNR', 'BBRNKQRN', 'BBRNKRNQ', 'BBRNKRQN', 'BBRNNKQR', 'BBRNNKRQ', 'BBRNNQKR', 'BBRNQKNR', 'BBRNQKRN', 'BBRNQNKR', 'BBRQKNNR', 'BBRQKNRN', 'BBRQKRNN', 'BBRQNKNR', 'BBRQNKRN', 'BBRQNNKR', 'BNNBQRKR', 'BNNBRKQR', 'BNNBRKRQ', 'BNNBRQKR', 'BNNQRBKR', 'BNNQRKRB', 'BNNRKBQR', 'BNNRKBRQ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N', 'RNQKBNRB', 'RNQKBRNB', 'RNQKNBBR', 'RNQKNRBB', 'RNQKRBBN', 'RNQKRNBB', 'RNQNBBKR', 'RNQNBKRB', 'RNQNKBBR', 'RNQNKRBB', 'RQBBKNNR', 'RQBBKNRN', 'RQBBKRNN', 'RQBBNKNR', 'RQBBNKRN', 'RQBBNNKR', 'RQBKNBNR', 'RQBKNBRN', 'RQBKNNRB', 'RQBKNRNB', 'RQBKRBNN', 'RQBKRNNB', 'RQBNKBNR', 'RQBNKBRN', 'RQBNKNRB', 'RQBNKRNB', 'RQBNNBKR', 'RQBNNKRB', 'RQKBBNNR', 'RQKBBNRN', 'RQKBBRNN', 'RQKBNNBR', 'RQKBNRBN', 'RQKBRNBN', 'RQKNBBNR', 'RQKNBBRN', 'RQKNBNRB', 'RQKNBRNB', 'RQKNNBBR', 'RQKNNRBB', 'RQKNRBBN', 'RQKNRNBB', 'RQKRBBNN', 'RQKRBNNB', 'RQKRNBBN', 'RQKRNNBB', 'RQNBBKNR', 'RQNBBKRN', 'RQNBBNKR', 'RQNBKNBR', 'RQNBKRBN', 'RQNBNKBR', 'RQNKBBNR', 'RQNKBBRN', 'RQNKBNRB', 'RQNKBRNB', 'RQNKNBBR', 'RQNKNRBB', 'RQNKRBBN', 'RQNKRNBB', 'RQNNBBKR', 'RQNNBKRB', 'RQNNKBBR', 'RQNNKRBB']
while True:
pos=randint(0,len(s)-1)
print(s[pos])
p=int(input())
if p==8:break
s1=[]
for i in s:
if cnt(s[pos],i)==p:s1.append(i)
s=s1.copy()
详细
Test #1:
score: 100
Accepted
time: 17ms
memory: 11152kb
input:
GAME 1 4 3 3 8 END
output:
RNBBKQNR RKBNQBNR BBRNKQNR RKRBBQNN
result:
ok (c) correct after 1 tests, max moves 4 (1 test case)
Test #2:
score: -100
Dangerous Syscalls
input:
GAME 1 4 3 4 1 8 GAME 2 2 2 2 2 8 GAME 3 2 1 6 6 8 GAME 4 4 0 8 GAME 5 4 2 1 6 8 GAME 6 2 3 0 3 8 GAME 7 0 2 1 2 3 8 GAME 8 2 1 1 0 2 4
output:
RNKBRQBN RNKRBBQN NRKBBQRN NRKQRBBN RKRBBQNN RQKNBRNB RBNKQRBN RNKBNQBR BNRKNRQB RKRBBNQN RKQNNRBB NQRNKBBR RKRBBNQN RKRBBQNN RKRBBNNQ RKNNQBBR BRNNKBQR RKRBQNBN RQNBNKBR RNNKQBBR QRNBBKNR RKRBNNBQ RKRBNQBN QRNKRNBB RBQNKNBR BBNNRKQR RKQRBNNB RKRBNNBQ BRKBNNRQ NBBQRKNR NNQRKBBR RNBKQRNB NBRKBRQN RKR...