結果
| 問題 | No.3102 floor sqrt xor |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-10-26 21:07:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 361 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 76,312 KB |
| 最終ジャッジ日時 | 2025-10-26 21:07:56 |
| 合計ジャッジ時間 | 3,807 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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