Submission #104389


Source Code Expand

Copy
#include <cstdio>
int main() {
	int N;
	int a,b,c,d,e,f;
	a=b=c=d=e=f=0;
	double MT,mt;
	scanf("%d",&N);
	for(int i=0;i<N;i++) {
		scanf("%lf %lf",&MT,&mt);
		if(MT>=35) a++;
		else if(MT>=30) b++;
		else if(MT>=25) c++;
		if(mt>=25) d++;
		if(MT>=0&&0>mt) e++;
		if(MT<0) f++;
	}
	printf("%d %d %d %d %d %d",a,b,c,d,e,f);
}

Submission Info

Submission Time
Task B - 真冬日?真夏日?
User Div9851
Language C++ (G++ 4.6.4)
Score 0
Code Size 341 Byte
Status
Exec Time 78 ms
Memory 804 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
./Main.cpp:9:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Test Cases

Set Name Score / Max Score Test Cases
All 0 / 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 78 ms 796 KB
00_sample_02.txt 20 ms 708 KB
00_sample_03.txt 19 ms 796 KB
test_00.txt 20 ms 712 KB
test_01.txt 19 ms 800 KB
test_02.txt 18 ms 704 KB
test_03.txt 20 ms 708 KB
test_04.txt 19 ms 804 KB
test_05.txt 19 ms 700 KB
test_06.txt 19 ms 712 KB
test_07.txt 20 ms 704 KB
test_08.txt 20 ms 708 KB
test_09.txt 21 ms 676 KB
test_10.txt 21 ms 804 KB
test_11.txt 22 ms 716 KB
test_12.txt 21 ms 716 KB
test_13.txt 20 ms 800 KB