結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
8nd5t
|
| 提出日時 | 2021-03-12 21:23:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 600 bytes |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 61,184 KB |
| 最終ジャッジ日時 | 2024-10-14 11:22:22 |
| 合計ジャッジ時間 | 1,573 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
import sys,math,itertools
from collections import Counter,deque,defaultdict
from bisect import bisect_left,bisect_right
from heapq import heappop,heappush,heapify, nlargest
from copy import deepcopy
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split()))
def inps(): return sys.stdin.readline()
def inpsl(x): tmp = sys.stdin.readline(); return list(tmp[:x])
def err(x): print(x); exit()
n = inp()
if n%2: print(1)
else: print(n//2+1)
8nd5t