Submission #173973


Source Code Expand

#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#include <algorithm>
#include <functional>
#include <iterator>
#include <locale>
#include <memory>
#include <stdexcept>
#include <utility>
#include <string>
#include <fstream>
#include <ios>
#include <iostream>
#include <iosfwd>
#include <iomanip>
#include <istream>
#include <ostream>
#include <sstream>
#include <streambuf>
#include <complex>
#include <numeric>
#include <valarray>
#include <exception>
#include <limits>
#include <new>
#include <typeinfo>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <climits>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdlib>
#include <cstddef>
#include <cstdarg>
#include <ctime>
#include <cstdio>
#include <cstring>
#include <cwchar>
#include <cwctype>
using namespace std;
static const double EPS = 1e-8;
static const double PI = 4.0 * atan(1.0);
static const double PI2 = 8.0 * atan(1.0);
typedef long long ll;
typedef unsigned long long ull;

#define ALL(c) (c).begin(), (c).end()
#define CLEAR(v) memset(v,0,sizeof(v))
#define MP(a,b) make_pair((a),(b))
#define REP(i,n) for(int i=0;i<(int)n;++i)
#define ABS(a) ((a)>0?(a):-(a))
template<class T> T MIN(const T& a, const T& b) { return a < b ? a : b; }
template<class T> T MAX(const T& a, const T& b) { return a > b ? a : b; }
template<class T> void MIN_UPDATE(T& a, const T& b) { if (a > b) a = b; }
template<class T> void MAX_UPDATE(T& a, const T& b) { if (a < b) a = b; }

int main() {
	std::ios::sync_with_stdio(false);

	int N;
	cin >> N;
	cout << (N + 1) / 2 << endl;
}

Submission Info

Submission Time
Task A - 引越し作業
User nodchip
Language C++11 (GCC 4.8.1)
Score 100
Code Size 1735 Byte
Status AC
Exec Time 56 ms
Memory 1364 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 22
Set Name Test Cases
All large_1000.txt, large_997.txt, large_998.txt, large_999.txt, random_148.txt, random_155.txt, random_198.txt, random_362.txt, random_403.txt, random_667.txt, random_795.txt, random_811.txt, random_85.txt, random_959.txt, small_10.txt, small_11.txt, small_3.txt, small_4.txt, small_6.txt, small_7.txt, small_8.txt, small_9.txt
Case Name Status Exec Time Memory
large_1000.txt AC 56 ms 1364 KB
large_997.txt AC 39 ms 1220 KB
large_998.txt AC 43 ms 1228 KB
large_999.txt AC 40 ms 1220 KB
random_148.txt AC 34 ms 1212 KB
random_155.txt AC 41 ms 1224 KB
random_198.txt AC 39 ms 1224 KB
random_362.txt AC 37 ms 1220 KB
random_403.txt AC 36 ms 1220 KB
random_667.txt AC 33 ms 1236 KB
random_795.txt AC 37 ms 1224 KB
random_811.txt AC 37 ms 1276 KB
random_85.txt AC 37 ms 1224 KB
random_959.txt AC 38 ms 1352 KB
sample_1.txt AC 39 ms 1348 KB
sample_2.txt AC 38 ms 1224 KB
sample_3.txt AC 39 ms 1224 KB
small_10.txt AC 39 ms 1224 KB
small_11.txt AC 37 ms 1228 KB
small_3.txt AC 37 ms 1220 KB
small_4.txt AC 37 ms 1276 KB
small_6.txt AC 38 ms 1220 KB
small_7.txt AC 40 ms 1236 KB
small_8.txt AC 38 ms 1228 KB
small_9.txt AC 38 ms 1232 KB