結果
問題 | No.3088 XOR = SUM |
ユーザー |
👑 ![]() |
提出日時 | 2025-02-19 20:24:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 493 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 77,308 KB |
最終ジャッジ日時 | 2025-03-14 23:38:37 |
合計ジャッジ時間 | 11,214 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 21 |
ソースコード
import sys input = sys.stdin.readline def read_values(): return map(int, input().split()) def read_list(): return list(read_values()) def main(): t=int(input()) for _ in range(t): n=int(input()) if n==0: print(0,0) continue v=1 while(n>v*2): v*=2 if n == v*2: print(v,v-1) else: print(v,n-v) if __name__ == "__main__": main()