結果

問題 No.638 Sum of "not power of 2"
ユーザー 夕叢霧香(ゆうむらきりか)夕叢霧香(ゆうむらきりか)
提出日時 2018-01-26 23:00:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 1,000 ms
コード長 122 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-08-28 18:11:15
合計ジャッジ時間 2,202 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,236 KB
testcase_01 AC 69 ms
71,320 KB
testcase_02 AC 69 ms
71,456 KB
testcase_03 AC 69 ms
71,308 KB
testcase_04 AC 69 ms
71,328 KB
testcase_05 AC 69 ms
71,124 KB
testcase_06 AC 68 ms
71,392 KB
testcase_07 AC 68 ms
71,200 KB
testcase_08 AC 70 ms
71,292 KB
testcase_09 AC 69 ms
71,292 KB
testcase_10 AC 71 ms
71,128 KB
testcase_11 AC 70 ms
71,400 KB
testcase_12 AC 69 ms
71,208 KB
testcase_13 AC 69 ms
71,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
for a in range(1,n):
    b=n-a
    if (a&-a)!=a and (b&-b)!=b:
        print(a,b)
        exit()
print(-1)
0