結果
| 問題 |
No.815 Are you a traveller ?
|
| コンテスト | |
| ユーザー |
giru_yukiko
|
| 提出日時 | 2019-05-27 21:26:54 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 15:34:51 |
| 合計ジャッジ時間 | 800 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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