結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-08 14:58:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 85,324 KB |
| 実行使用メモリ | 53,784 KB |
| 最終ジャッジ日時 | 2026-03-08 23:36:34 |
| 合計ジャッジ時間 | 1,233 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
N=int(input())
s=set([2**i for i in range(100)])
for i in range(1,N):
a,b=i,N-i
if a in s or b in s:
continue
else:
print(a,b)
exit()
print(-1)