Submission #4316422
Source Code Expand
def deg(x): if x>=112.5 and x<337.5: return('NNE') elif x>=337.5 and x<562.5: return('NE') elif x>=562.5 and x<787.5: return('ENE') elif x>=787.5 and x<1012.5: return('E') elif x>=1012.5 and x<1237.5: return('ESE') elif x>=1237.5 and x<1462.5: return('SE') elif x>=1462.5 and x<1687.5: return('SSE') elif x>=1687.5 and x<1912.5: return('S') elif x>=1912.5 and x<2137.5: return('SSW') elif x>=2137.5 and x<2362.5: return('SW') elif x>=2362.5 and x<2587.5: return('WSW') elif x>=2587.5 and x<2812.5: return('W') elif x>=2812.5 and x<3037.5: return('WNW') elif x>=3037.5 and x<3262.5: return('NW') elif x>=3262.5 and x<3487.5: return('NNW') else: return('N') def dis(y): y = y/60 if y>=0 and y<=0.2: return(0) elif y>=0.3 and y<=1.5: return(1) elif y>=1.6 and y<=3.3: return(2) elif y>=3.4 and y<=5.4: return(3) elif y>=5.5 and y<=7.9: return(4) elif y>=8.0 and y<=10.7: return(5) elif y>=10.8 and y<=13.8: return(6) elif y>=13.9 and y<=17.1: return(7) elif y>=17.2 and y<=20.7: return(8) elif y>=20.8 and y<=24.4: return(9) elif y>=24.5 and y<=28.4: return(10) elif y>=28.5 and y<=32.6: return(11) elif y>=32.7: return(12) def main(): print('Deg is 0 ~ 3600') Deg = int(input()) print('Dis is 0 ~ 12000') Dis = int(input()) if dis(Dis)==0: print('C 0') else: print('{} {}'.format(deg(Deg),dis(Dis))) if __name__ == "__main__": main()
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | keroido |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 1808 Byte |
Status | WA |
Exec Time | 19 ms |
Memory | 3188 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.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, test_14.txt, test_15.txt, test_16.txt, test_17.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | WA | 18 ms | 3188 KB |
00_sample_02.txt | WA | 18 ms | 3188 KB |
00_sample_03.txt | WA | 18 ms | 3188 KB |
test_01.txt | WA | 18 ms | 3188 KB |
test_02.txt | WA | 18 ms | 3188 KB |
test_03.txt | WA | 18 ms | 3188 KB |
test_04.txt | WA | 18 ms | 3188 KB |
test_05.txt | WA | 18 ms | 3188 KB |
test_06.txt | WA | 18 ms | 3188 KB |
test_07.txt | WA | 18 ms | 3188 KB |
test_08.txt | WA | 18 ms | 3188 KB |
test_09.txt | WA | 18 ms | 3188 KB |
test_10.txt | WA | 18 ms | 3188 KB |
test_11.txt | WA | 19 ms | 3188 KB |
test_12.txt | WA | 18 ms | 3188 KB |
test_13.txt | WA | 18 ms | 3188 KB |
test_14.txt | WA | 18 ms | 3188 KB |
test_15.txt | WA | 19 ms | 3188 KB |
test_16.txt | WA | 19 ms | 3188 KB |
test_17.txt | WA | 18 ms | 3188 KB |