結果
| 問題 | No.815 Are you a traveller ? | 
| コンテスト | |
| ユーザー |  dgd1724 | 
| 提出日時 | 2019-09-26 21:24:34 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 319 bytes | 
| コンパイル時間 | 638 ms | 
| コンパイル使用メモリ | 60,664 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-24 06:22:26 | 
| 合計ジャッジ時間 | 1,195 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 | 
ソースコード
#include <fstream>
#include <iostream>
#include <utility> //pair
#include <string>
#include <cmath> //pow
int main() {
	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());
	int N;
	std::cin >> N;
	if (N % 2 == 0) {
		std::cout << N / 2 << std::endl;
	}
	else {
		std::cout << N / 2 + 1 << std::endl;
	}
}
            
            
            
        