結果

問題 No.928 軽減税率?
ユーザー yuruhiyayuruhiya
提出日時 2020-07-06 22:45:11
言語 Crystal
(1.11.2)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 18,511 ms
コンパイル使用メモリ 256,020 KB
実行使用メモリ 4,560 KB
最終ジャッジ日時 2023-09-13 11:07:13
合計ジャッジ時間 18,629 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,464 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 3 ms
4,380 KB
testcase_05 AC 4 ms
4,500 KB
testcase_06 AC 4 ms
4,412 KB
testcase_07 AC 6 ms
4,464 KB
testcase_08 AC 5 ms
4,460 KB
testcase_09 AC 6 ms
4,380 KB
testcase_10 AC 5 ms
4,380 KB
testcase_11 AC 5 ms
4,380 KB
testcase_12 AC 7 ms
4,380 KB
testcase_13 AC 4 ms
4,468 KB
testcase_14 AC 6 ms
4,396 KB
testcase_15 AC 4 ms
4,412 KB
testcase_16 AC 6 ms
4,380 KB
testcase_17 AC 7 ms
4,380 KB
testcase_18 AC 7 ms
4,380 KB
testcase_19 AC 8 ms
4,404 KB
testcase_20 AC 7 ms
4,380 KB
testcase_21 AC 7 ms
4,376 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

MAX_C = 1i64 ** 9
x, y, a = read_line.split.map &.to_i64
if x == y
  puts a == 0 ? MAX_C : 0
else
  puts (1..100*(a + 1)).count { |i|
    x*i//100 < y*i//100 + a
  }
end
0