結果
| 問題 |
No.3115 One Power One Kill
|
| コンテスト | |
| ユーザー |
aaaaaaaaaaa
|
| 提出日時 | 2025-04-19 13:58:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,498 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 27,912 KB |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2025-04-19 13:58:23 |
| 合計ジャッジ時間 | 5,279 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
import sys
def solve():
# Choose A and B
a = 100
b = 100
# Output A and B
print(f"{a} {b}", flush=True)
# Read K from the judge
try:
k = int(sys.stdin.readline())
if k == -1: # Error case? Assume not needed based on problem type
return
except ValueError:
# Handle potential errors if input is not an integer
# print("Error reading K", file=sys.stderr)
return
except EOFError:
# Handle EOF
# print("EOF reached unexpectedly", file=sys.stderr)
return
# Based on our analysis, X' should always be 1
# when A=100, B=100
x_prime_guess = 1
# Output the guess for X'
print(f"{x_prime_guess}", flush=True)
# Read the result from the judge
try:
ret = int(sys.stdin.readline())
# We don't strictly need to do anything with ret unless debugging
# if ret == 0:
# print("Guess was incorrect", file=sys.stderr)
# elif ret == 1:
# print("Guess was correct", file=sys.stderr)
# else:
# print(f"Unexpected return value: {ret}", file=sys.stderr)
except ValueError:
# Handle potential errors if input is not an integer
# print("Error reading ret", file=sys.stderr)
return
except EOFError:
# Handle EOF
# print("EOF reached after guess", file=sys.stderr)
return
if __name__ == '__main__':
solve()
aaaaaaaaaaa