Submission #31262265


Source Code Expand

v, a, b, c = map(int, input().split())
while v >= 0:
    if v < a:
        print("F")
        break
    v -= a
    if v < b:
        print("M")
        break
    v -= b
    if v < c:
        print("T")
        break
    v -= c

Submission Info

Submission Time
Task A - Shampoo
User Pro_ktmr
Language PyPy3 (7.3.0)
Score 100
Code Size 239 Byte
Status AC
Exec Time 66 ms
Memory 62808 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 11
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 66 ms 61704 KiB
random_02.txt AC 51 ms 61608 KiB
random_03.txt AC 54 ms 61592 KiB
random_04.txt AC 49 ms 61768 KiB
random_05.txt AC 47 ms 61640 KiB
random_06.txt AC 50 ms 61568 KiB
random_07.txt AC 49 ms 61636 KiB
random_08.txt AC 51 ms 61556 KiB
sample_01.txt AC 47 ms 61740 KiB
sample_02.txt AC 48 ms 61564 KiB
sample_03.txt AC 52 ms 62808 KiB