Submission #105118


Source Code Expand

Copy
N = input()
ctgry = [0,0,0,0,0,0]

for i in range(int(N)):
    Mm = [float(Mm) for Mm in input().split()]
    if Mm[0] >= 35:
        ctgry[0] += 1
    if 35 > Mm[0] >= 30:
        ctgry[1] += 1
    if 30 > Mm[0] >= 25:
        ctgry[2] += 1
    if Mm[1] >= 25:
        ctgry[3] += 1
    if 0 > Mm[1] and Mm[0] >= 0:
        ctgry[4] += 1
    if 0 > Mm[0]:
        ctgry[5] += 1
        
print(ctgry)

Submission Info

Submission Time
Task B - 真冬日?真夏日?
User eiurur
Language Python3 (3.2.3)
Score 0
Code Size 418 Byte
Status
Exec Time 485 ms
Memory 8656 KB

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 485 ms 8656 KB
00_sample_02.txt 148 ms 8272 KB
00_sample_03.txt 152 ms 8360 KB
test_00.txt 136 ms 8348 KB
test_01.txt 140 ms 8340 KB
test_02.txt 137 ms 8296 KB
test_03.txt 133 ms 8348 KB
test_04.txt 135 ms 8352 KB
test_05.txt 132 ms 8300 KB
test_06.txt 146 ms 8344 KB
test_07.txt 146 ms 8348 KB
test_08.txt 166 ms 8348 KB
test_09.txt 163 ms 8344 KB
test_10.txt 169 ms 8356 KB
test_11.txt 168 ms 8352 KB
test_12.txt 164 ms 8344 KB
test_13.txt 160 ms 8344 KB