結果
問題 |
No.3088 XOR = SUM
|
ユーザー |
|
提出日時 | 2025-04-04 22:20:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 691 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 76,672 KB |
最終ジャッジ日時 | 2025-04-04 22:20:36 |
合計ジャッジ時間 | 24,924 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
T=int(input()) for _ in range(T): N=int(input()) if N<=1: print(0,0) continue c=1 while c*2<=N: c*=2 X1,Y1=c,N-c X2,Y2=c//2,c//2-1 if X1*Y1>X2*Y2: print(X1,Y1) else: print(X2,Y2)