結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
tails1434
|
| 提出日時 | 2020-01-30 07:31:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 1,000 ms |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2026-04-05 07:30:04 |
| 合計ジャッジ時間 | 1,248 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
def main():
N = int(input())
c = [0]
for i in range(100):
c.append(2 ** i)
for i in range(N // 2 + 2):
if i in c:
continue
elif N - i in c:
continue
else:
print(i, N - i)
exit()
print(-1)
if __name__ == "__main__":
main()
tails1434