結果

問題 No.638 Sum of "not power of 2"
ユーザー sho_00sho_00
提出日時 2020-04-12 11:42:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 195 bytes
コンパイル時間 1,718 ms
コンパイル使用メモリ 81,652 KB
実行使用メモリ 51,580 KB
最終ジャッジ日時 2023-10-22 00:56:53
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,572 KB
testcase_01 AC 40 ms
51,576 KB
testcase_02 AC 39 ms
51,572 KB
testcase_03 AC 39 ms
51,580 KB
testcase_04 AC 39 ms
51,572 KB
testcase_05 AC 39 ms
51,576 KB
testcase_06 AC 38 ms
51,576 KB
testcase_07 AC 39 ms
51,580 KB
testcase_08 AC 38 ms
51,580 KB
testcase_09 AC 39 ms
51,580 KB
testcase_10 AC 39 ms
51,576 KB
testcase_11 AC 39 ms
51,572 KB
testcase_12 AC 39 ms
51,572 KB
testcase_13 AC 39 ms
51,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N<=5:
  print(-1)
else:
  if N==7:
    print(-1)
  else:
    v=N-3
    if v&(v-1)!=0:
      print(' '.join([str(3),str(N-3)]))
    else:
      print(' '.join([str(5),str(N-5)]))
0