結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
coro65536
|
| 提出日時 | 2018-01-26 22:32:56 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 1,000 ms |
| + 112µs | |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2026-10-09 13:04:04 |
| 合計ジャッジ時間 | 1,315 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
# B
N = int(input())
if N <= 5:
print(-1)
quit()
if N == 6:
print(3, 3)
quit()
if N == 7:
print(-1)
quit()
if N % 2 == 0:
print(3, N-3)
quit()
if N-3 & (N-4):
print(3, N-3)
else:
print(5, N-5)
coro65536