Submission #2380579
Source Code Expand
#!/usr/bin/env python3 import sys, math, copy # import fractions, itertools # import numpy as np # import scipy HUGE = 2147483647 HUGEL = 9223372036854775807 ABC = "abcdefghijklmnopqrstuvwxyz" def main(): x = input() lev = 0 for c in x: if c == "S": lev += 1 else: lev -= 1 lev = max(0, lev) print(lev * 2) main()
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | sen_7 |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 386 Byte |
Status | AC |
Exec Time | 53 ms |
Memory | 4008 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | 100 / 100 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2 |
Subtask1 | example0, example1, example2, sub_corner0, sub_corner1, sub_corner2, sub_rand0, handmade0, handmade1 |
All | corner0, corner1, corner2, example0, example1, example2, handmade0, handmade1, maxrand0, sub_corner0, sub_corner1, sub_corner2, sub_rand0 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
corner0 | AC | 53 ms | 4008 KB |
corner1 | AC | 52 ms | 4008 KB |
corner2 | AC | 50 ms | 4008 KB |
example0 | AC | 22 ms | 3444 KB |
example1 | AC | 22 ms | 3444 KB |
example2 | AC | 22 ms | 3444 KB |
handmade0 | AC | 22 ms | 3444 KB |
handmade1 | AC | 22 ms | 3444 KB |
maxrand0 | AC | 52 ms | 4008 KB |
sub_corner0 | AC | 22 ms | 3444 KB |
sub_corner1 | AC | 22 ms | 3444 KB |
sub_corner2 | AC | 22 ms | 3444 KB |
sub_rand0 | AC | 22 ms | 3444 KB |