Submission #173974


Source Code Expand

// compile with "g++ XXX.cc -mno-cygwin -O2" in Cygwin

#include<iostream>
#include<sstream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<numeric>
#include<functional>
#include<complex>
#include<bitset>
#include<cassert>

using namespace std;
#define BET(a,b,c) ((a)<=(b)&&(b)<(c))
#define FOR(i,n) for(int i=0,i##_end=(int(n));i<i##_end;i++)
#define FOR3(i,a,b) for(int i=a,i##_end=b;i<i##_end;i++)
#define FOR_EACH(it,v) for(__typeof(v.begin()) it=v.begin(),it_end=v.end() ; it != it_end ; it++)
#define SZ(x) (int)(x.size())
#define ALL(x) (x).begin(),(x).end()
#define MP make_pair
#define CLS(x,val) memset((x) , val , sizeof(x)) 
typedef long long ll_t;
typedef long double ld_t;
typedef vector<int> VI; 
typedef vector<VI> VVI;
typedef complex<int> xy_t;

template<typename T> void debug(T v , string delimiter = "\n")
{ for(__typeof(v.begin()) it=v.begin(),it_end=v.end() ; it != it_end ; it++) cout << *it << delimiter; cout << flush ;}

int dx[]  = {0,1,0,-1};
int dy[]  = {1,0,-1,0};
string ds = "SENW";

const double PI = 4.0*atan(1.0);

int main() {
  int n;
  cin>>n;
  cout<<(n+1)/2<<endl;
  
  return 0 ;
}

Submission Info

Submission Time
Task A - 引越し作業
User EmK
Language C++ (G++ 4.6.4)
Score 100
Code Size 1303 Byte
Status AC
Exec Time 27 ms
Memory 932 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 27 ms 740 KB
large_997.txt AC 20 ms 796 KB
large_998.txt AC 21 ms 800 KB
large_999.txt AC 20 ms 932 KB
random_148.txt AC 20 ms 800 KB
random_155.txt AC 21 ms 804 KB
random_198.txt AC 21 ms 804 KB
random_362.txt AC 21 ms 800 KB
random_403.txt AC 20 ms 796 KB
random_667.txt AC 21 ms 676 KB
random_795.txt AC 20 ms 788 KB
random_811.txt AC 20 ms 804 KB
random_85.txt AC 21 ms 800 KB
random_959.txt AC 20 ms 800 KB
sample_1.txt AC 20 ms 804 KB
sample_2.txt AC 21 ms 932 KB
sample_3.txt AC 21 ms 932 KB
small_10.txt AC 21 ms 924 KB
small_11.txt AC 20 ms 792 KB
small_3.txt AC 20 ms 792 KB
small_4.txt AC 21 ms 804 KB
small_6.txt AC 21 ms 756 KB
small_7.txt AC 21 ms 932 KB
small_8.txt AC 21 ms 804 KB
small_9.txt AC 21 ms 928 KB