Submission #3232059
Source Code Expand
n,m = map(int,input().split()) cou = 0 if n != 0 and m != 0: if n / m < 0: cou += 1 n *= (-1) elif n < 0 and m < 0: cou += 2 n *= (-1) m *= (-1) else: continue print(cou + abs(n-m))
Submission Info
Submission Time | |
---|---|
Task | C - Many Medians |
User | tako0218 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 229 Byte |
Status | RE |
Exec Time | 17 ms |
Memory | 2940 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 10.txt, 11.txt, 12.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | RE | 16 ms | 2940 KB |
10.txt | RE | 16 ms | 2940 KB |
11.txt | RE | 16 ms | 2940 KB |
12.txt | RE | 16 ms | 2940 KB |
2.txt | RE | 17 ms | 2940 KB |
3.txt | RE | 17 ms | 2940 KB |
4.txt | RE | 16 ms | 2940 KB |
5.txt | RE | 16 ms | 2940 KB |
6.txt | RE | 16 ms | 2940 KB |
7.txt | RE | 16 ms | 2940 KB |
8.txt | RE | 16 ms | 2940 KB |
9.txt | RE | 17 ms | 2940 KB |
sample1.txt | RE | 17 ms | 2940 KB |
sample2.txt | RE | 16 ms | 2940 KB |
sample3.txt | RE | 16 ms | 2940 KB |