結果

問題 No.276 連続する整数の和(1)
ユーザー McGregorshMcGregorsh
提出日時 2023-05-14 23:49:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 146 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-08-20 08:40:45
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,192 KB
testcase_01 AC 77 ms
71,252 KB
testcase_02 AC 79 ms
71,360 KB
testcase_03 AC 78 ms
71,372 KB
testcase_04 AC 78 ms
71,424 KB
testcase_05 AC 80 ms
71,312 KB
testcase_06 AC 78 ms
71,204 KB
testcase_07 AC 79 ms
71,400 KB
testcase_08 AC 77 ms
71,460 KB
testcase_09 AC 78 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
   
   N = int(input())
   
   if N % 2 == 1:
   	  print(N)
   else:
   	  print(N//2)
   
if __name__ == '__main__':
    main()
    
0