Submission #104548


Source Code Expand

Copy
#include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<string>
#include<string.h>
#include<cstdlib>
#include<ctime>
#include<cmath>
#include<map>
#include<set>
#include<bitset>
#include<iostream>
#include<sstream>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < n; i++)
#define rrep(i,n) for(int i = 1; i <= n; i++)
#define drep(i,n) for(int i = n-1; i >= 0; i--)
#define each(it,c) for(__typeof((c).begin()) it=(c).begin();it!=(c).end();it++)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) x = max(x,y);
#define mins(x,y) x = min(x,y);
#define pb push_back
#define snuke srand((unsigned)clock()+(unsigned)time(NULL))
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
typedef vector<int> vi;

const int MX = 100005, INF = 1000000000, mod = 1000000007;
const ll LINF = 1000000000000000000ll;
const double eps = 1e-9;
const int dx[4] = {-1,0,1,0}, dy[4] = {0,-1,0,1}; //<^>v

int d[6];


int main(){
	int n;
	cin >> n;
	double l, r;
	rep(i,n){
		cin >> l >> r;
		if(l>=35) d[0]++;
		if(l<35&&l>=30) d[1]++;
		if(l<30&&l>=25) d[2]++;
		if(r>=25) d[3]++;
		if(r<0&&l>=0) d[4]++;
		if(l<0) d[5]++;
	}
	
	rep(i,6) printf("%d%c",d[i],i==5?'\n':' ');
	
	return 0;
}




Submission Info

Submission Time
Task B - 真冬日?真夏日?
User snuke
Language C++ (G++ 4.6.4)
Score 100
Code Size 1312 Byte
Status
Exec Time 27 ms
Memory 924 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt
Case Name Status Exec Time Memory
00_sample_01.txt 20 ms 720 KB
00_sample_02.txt 21 ms 796 KB
00_sample_03.txt 20 ms 920 KB
test_00.txt 21 ms 924 KB
test_01.txt 22 ms 800 KB
test_02.txt 19 ms 920 KB
test_03.txt 22 ms 844 KB
test_04.txt 21 ms 796 KB
test_05.txt 22 ms 796 KB
test_06.txt 23 ms 860 KB
test_07.txt 24 ms 796 KB
test_08.txt 26 ms 800 KB
test_09.txt 27 ms 904 KB
test_10.txt 26 ms 800 KB
test_11.txt 27 ms 796 KB
test_12.txt 26 ms 796 KB
test_13.txt 26 ms 724 KB