結果
問題 |
No.3246 80% Accuracy Calculator
|
ユーザー |
![]() |
提出日時 | 2025-09-02 02:41:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 895 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 43,672 KB |
最終ジャッジ日時 | 2025-09-02 02:41:21 |
合計ジャッジ時間 | 7,121 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 42 |
ソースコード
import sys input = sys.stdin.readline from collections import Counter A=[] for i in range(10): print("?","A",flush=True) ret=int(input()) A.append(ret) B=[] for i in range(10): print("?","B",flush=True) ret=int(input()) B.append(ret) CA=Counter(A) A=CA.most_common()[0][0] CB=Counter(B) B=CB.most_common()[0][0] for i in range(min(A,B)): if A<B: print("+","C","B","C",flush=True) else: print("+","C","A","C",flush=True) ret=input().strip() while True: C=[] for i in range(10): print("?","C",flush=True) ret=input().strip() C.append(ret) CC=Counter(C) C=CC.most_common()[0][0] if C==A*B: break if A<B: print("+","C","B","C",flush=True) else: print("+","C","A","C",flush=True) ret=input().strip() print("!","C",flush=True)