提出 #22468570


ソースコード 拡げる

t, n = map(int, input().split())
tmp = (n*100)//t - 1
before = (tmp*(100+t))//100
for i in range(tmp+1, tmp+1000):
    if (i*(100+t))//100 > before+1:
        print(before+1)
        exit()
    before += 1

提出情報

提出日時
問題 A - Tax Included Price
ユーザ octo
言語 Python (3.8.2)
得点 300
コード長 214 Byte
結果 AC
実行時間 31 ms
メモリ 9196 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 300 / 300
結果
AC × 3
AC × 26
セット名 テストケース
Sample 01_sample_01.txt, 01_sample_02.txt, 01_sample_03.txt
All 01_sample_01.txt, 01_sample_02.txt, 01_sample_03.txt, 02_rand_01.txt, 02_rand_02.txt, 02_rand_03.txt, 02_rand_04.txt, 02_rand_05.txt, 02_rand_06.txt, 02_rand_07.txt, 02_rand_08.txt, 02_rand_09.txt, 02_rand_10.txt, 03_numerical_error_01.txt, 03_numerical_error_02.txt, 03_numerical_error_03.txt, 03_numerical_error_04.txt, 03_numerical_error_05.txt, 04_handmade_01.txt, 04_handmade_02.txt, 04_handmade_03.txt, 05_numerical_error_ld_01.txt, 05_numerical_error_ld_02.txt, 05_numerical_error_ld_03.txt, 05_numerical_error_ld_04.txt, 05_numerical_error_ld_05.txt
ケース名 結果 実行時間 メモリ
01_sample_01.txt AC 19 ms 9104 KiB
01_sample_02.txt AC 19 ms 8956 KiB
01_sample_03.txt AC 19 ms 9044 KiB
02_rand_01.txt AC 27 ms 8876 KiB
02_rand_02.txt AC 20 ms 9036 KiB
02_rand_03.txt AC 19 ms 9040 KiB
02_rand_04.txt AC 31 ms 9028 KiB
02_rand_05.txt AC 19 ms 8868 KiB
02_rand_06.txt AC 18 ms 8864 KiB
02_rand_07.txt AC 25 ms 9164 KiB
02_rand_08.txt AC 19 ms 8976 KiB
02_rand_09.txt AC 22 ms 9036 KiB
02_rand_10.txt AC 26 ms 8860 KiB
03_numerical_error_01.txt AC 18 ms 8972 KiB
03_numerical_error_02.txt AC 19 ms 9096 KiB
03_numerical_error_03.txt AC 19 ms 8980 KiB
03_numerical_error_04.txt AC 18 ms 8984 KiB
03_numerical_error_05.txt AC 18 ms 8984 KiB
04_handmade_01.txt AC 20 ms 9032 KiB
04_handmade_02.txt AC 19 ms 9196 KiB
04_handmade_03.txt AC 21 ms 8984 KiB
05_numerical_error_ld_01.txt AC 20 ms 9104 KiB
05_numerical_error_ld_02.txt AC 18 ms 8868 KiB
05_numerical_error_ld_03.txt AC 19 ms 9096 KiB
05_numerical_error_ld_04.txt AC 18 ms 9032 KiB
05_numerical_error_ld_05.txt AC 18 ms 8872 KiB