結果
| 問題 | No.815 Are you a traveller ? |
| コンテスト | |
| ユーザー |
giru_yukiko
|
| 提出日時 | 2019-05-27 21:26:54 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 37,056 KB |
| 最終ジャッジ日時 | 2026-02-22 03:29:08 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <stdio.h>
int main(void){
int person;
char buf[100];
fgets(buf,sizeof(buf),stdin);
sscanf(buf,"%d",&person);
switch(person%2){
case 0:
printf("%d\n",person/2);
break;
case 1:
printf("%d\n",person/2+1);
break;
}
return(0);
}
giru_yukiko