結果
| 問題 | No.3102 floor sqrt xor |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-10-26 21:07:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-07-16 00:45:21 |
| 合計ジャッジ時間 | 4,622 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 26 |
ソースコード
from math import isqrt
for _ in range(int(input())):
N = int(input())
sq = isqrt(N)
for n in reversed(range(max(sq-1000, 0), sq+1)):
k = N^n
if isqrt(k) == n:
print(k)
break
else:
print(-1)
detteiuu