Submission #25418442
Source Code Expand
Copy
S=str(input())ans=[]Y=0for i in range(len(S)):if S[i]=='.':Y=int(S[i+1])if 0<=Y<=2:V='-'elif 3<=Y<=6:V=0elif 7<=Y<=9:V='+'for q in range(3):if q==i:breakelse:ans.append(S[q])a=''.join(ans)
S=str(input()) ans=[] Y=0 for i in range(len(S)): if S[i]=='.': Y=int(S[i+1]) if 0<=Y<=2: V='-' elif 3<=Y<=6: V=0 elif 7<=Y<=9: V='+' for q in range(3): if q==i: break else: ans.append(S[q]) a=''.join(ans) if V==0: print(a) else: print(a+V)
Submission Info
Submission Time | |
---|---|
Task | A - Signed Difficulty |
User | kondou_y |
Language | Python (3.8.2) |
Score | 100 |
Code Size | 341 Byte |
Status | AC |
Exec Time | 25 ms |
Memory | 9040 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0.txt, example1.txt, example2.txt |
All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
000.txt | AC | 18 ms | 9040 KB |
001.txt | AC | 20 ms | 9036 KB |
002.txt | AC | 18 ms | 8896 KB |
003.txt | AC | 19 ms | 8980 KB |
004.txt | AC | 21 ms | 8976 KB |
005.txt | AC | 20 ms | 8892 KB |
006.txt | AC | 18 ms | 9032 KB |
example0.txt | AC | 25 ms | 9040 KB |
example1.txt | AC | 20 ms | 9012 KB |
example2.txt | AC | 20 ms | 8892 KB |