結果

問題 No.192 合成数
ユーザー トミートミー
提出日時 2024-04-12 23:49:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 82,664 KB
実行使用メモリ 53,924 KB
最終ジャッジ日時 2024-04-12 23:49:45
合計ジャッジ時間 3,360 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,696 KB
testcase_01 AC 38 ms
52,284 KB
testcase_02 AC 38 ms
53,088 KB
testcase_03 AC 37 ms
53,192 KB
testcase_04 AC 38 ms
52,496 KB
testcase_05 AC 38 ms
52,272 KB
testcase_06 AC 37 ms
52,180 KB
testcase_07 AC 40 ms
52,268 KB
testcase_08 AC 36 ms
51,900 KB
testcase_09 AC 37 ms
51,820 KB
testcase_10 AC 37 ms
51,556 KB
testcase_11 AC 38 ms
52,580 KB
testcase_12 AC 37 ms
52,796 KB
testcase_13 AC 38 ms
52,832 KB
testcase_14 AC 38 ms
51,832 KB
testcase_15 AC 43 ms
52,800 KB
testcase_16 AC 38 ms
52,504 KB
testcase_17 AC 37 ms
52,596 KB
testcase_18 AC 38 ms
52,212 KB
testcase_19 AC 37 ms
52,132 KB
testcase_20 AC 37 ms
52,744 KB
testcase_21 AC 41 ms
52,680 KB
testcase_22 AC 40 ms
53,144 KB
testcase_23 AC 37 ms
51,956 KB
testcase_24 AC 38 ms
53,020 KB
testcase_25 AC 38 ms
53,924 KB
testcase_26 AC 46 ms
52,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n=int(input())
    n=n+4 if n<4 else n
    result=n if n%2==0 else n+1
    print(result)


if __name__ == "__main__":
    main()
0