結果
問題 |
No.1422 Social Distance in Train
|
ユーザー |
![]() |
提出日時 | 2021-03-14 01:59:52 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 137 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 14:44:36 |
合計ジャッジ時間 | 916 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include<stdio.h> int main() { int n; scanf("%d", &n); if (n % 2 > 0) printf("1\n"); else printf("%d\n", n / 2 + 1); return 0; }