提出 #31262265


ソースコード 拡げる

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

提出情報

提出日時
問題 A - Shampoo
ユーザ Pro_ktmr
言語 PyPy3 (7.3.0)
得点 100
コード長 239 Byte
結果 AC
実行時間 66 ms
メモリ 62808 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 11
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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