結果
問題 |
No.3088 XOR = SUM
|
ユーザー |
👑 ![]() |
提出日時 | 2025-04-04 21:33:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 746 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 2,232 ms |
コンパイル使用メモリ | 82,272 KB |
実行使用メモリ | 76,416 KB |
最終ジャッジ日時 | 2025-04-04 21:36:59 |
合計ジャッジ時間 | 28,497 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
T = int(input()) while T: T -= 1 N = int(input()) if N == 0: print(0, 0) continue a = 1 while a * 2 <= N: a *= 2 if a * (N - a) >= (a // 2) * (a // 2 - 1): print(a, N - a) else: print(a // 2, a // 2 - 1)