結果
| 問題 |
No.278 連続する整数の和(2)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-03 22:29:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 118 bytes |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 53,856 KB |
| 最終ジャッジ日時 | 2025-01-03 22:29:23 |
| 合計ジャッジ時間 | 2,130 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 15 |
ソースコード
N = int(input())
if N % 2 == 1:
print(N+1)
else:
if N == 2:
print(1)
else:
print(1 + N//2)
ntuda