結果
| 問題 | No.2124 Guess the Permutation |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2022-11-18 21:26:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 518 ms |
| コンパイル使用メモリ | 20,692 KB |
| 実行使用メモリ | 53,244 KB |
| 最終ジャッジ日時 | 2026-04-08 14:23:48 |
| 合計ジャッジ時間 | 7,370 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | -- * 9 |
ソースコード
from sys import stdin
input = stdin.buffer.read
def ask(x):
print(f'? 1 {x + 1}')
return int(input())
def answer(d):
print('!', *d)
n = int(input())
ans = []
sm = 0
for i in range(n - 1):
x = ask(i) - sm
ans.append(x)
sm += x
x = n * (n + 1) // 2 - sm
ans.append(x)
answer(ans)
Kude