結果
問題 |
No.3102 floor sqrt xor
|
ユーザー |
|
提出日時 | 2025-04-13 19:45:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 82,820 KB |
実行使用メモリ | 63,332 KB |
最終ジャッジ日時 | 2025-04-13 19:45:38 |
合計ジャッジ時間 | 3,670 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 WA * 14 |
ソースコード
import math T = int(input()) for _ in range(T): N = int(input()) t = N // pow(2, 30) ans = -1 for m in range(int(math.sqrt(t * pow(2, 30))), int(math.sqrt((t + 1) * pow(2, 30)))): # print(m) if m ** 2 <= m ^ N < (m + 1) ** 2: ans = m ^ N print(ans)