結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
![]() |
提出日時 | 2024-10-06 11:50:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 53,624 KB |
最終ジャッジ日時 | 2024-10-06 11:50:39 |
合計ジャッジ時間 | 1,527 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 1 |
ソースコード
n = int(input()) ok = 0 for i in range(3, min(n, 6)): if i == 4: continue b = n - i jou = 1 for j in range(59): if (2**j) == b: jou = 0 if jou == 1: print(i, b) ok = 1 break if ok == 0: print(-1)