結果
| 問題 | No.815 Are you a traveller ? | 
| コンテスト | |
| ユーザー |  giru_yukiko | 
| 提出日時 | 2019-05-27 21:25:51 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 253 bytes | 
| コンパイル時間 | 89 ms | 
| コンパイル使用メモリ | 28,416 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-17 15:34:51 | 
| 合計ジャッジ時間 | 478 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 | 
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
            
            ソースコード
#include <stdio.h>
main(){
	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);
}
            
            
            
        