Submission #2234659
Source Code Expand
S = input() count = int() for i in range(0, len(S)): for j in range(0, len(S)): if i == j: continue if i < j: if S[i] == 'U': count += 1 else: count += 2 if i > j: if S[i] == 'D': count += 1 else: count += 2 print(count)
Submission Info
Submission Time | |
---|---|
Task | B - Evilator |
User | taiki_okano |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 390 Byte |
Status | TLE |
Exec Time | 2104 ms |
Memory | 3188 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | TLE | 2104 ms | 3188 KB |
02.txt | TLE | 2104 ms | 3188 KB |
03.txt | TLE | 2104 ms | 3188 KB |
04.txt | TLE | 2104 ms | 3188 KB |
05.txt | TLE | 2104 ms | 3188 KB |
06.txt | TLE | 2104 ms | 3188 KB |
07.txt | TLE | 2104 ms | 3188 KB |
08.txt | TLE | 2104 ms | 3188 KB |
09.txt | AC | 17 ms | 2940 KB |
10.txt | AC | 17 ms | 2940 KB |
s1.txt | AC | 17 ms | 2940 KB |
s2.txt | AC | 17 ms | 2940 KB |