結果
| 問題 |
No.638 Sum of "not power of 2"
|
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2024-10-06 11:52:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-10-06 11:52:16 |
| 合計ジャッジ時間 | 1,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 1 |
ソースコード
n = int(input())
ok = 0
for i in range(3, min(n, 20)):
if i == 4 or i == 8 or i == 16:
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)
kazuppa