結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,380 KB
testcase_01 AC 3 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 3 ms
4,560 KB
testcase_05 AC 5 ms
4,400 KB
testcase_06 AC 5 ms
4,416 KB
testcase_07 AC 6 ms
4,376 KB
testcase_08 AC 5 ms
4,400 KB
testcase_09 AC 6 ms
4,392 KB
testcase_10 AC 4 ms
4,380 KB
testcase_11 AC 5 ms
4,436 KB
testcase_12 AC 8 ms
4,376 KB
testcase_13 AC 4 ms
4,380 KB
testcase_14 AC 7 ms
4,396 KB
testcase_15 AC 4 ms
4,504 KB
testcase_16 AC 7 ms
4,400 KB
testcase_17 AC 8 ms
4,400 KB
testcase_18 AC 8 ms
4,464 KB
testcase_19 AC 8 ms
4,500 KB
testcase_20 AC 8 ms
4,400 KB
testcase_21 AC 8 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 = 10 ** 9
x, y, a = read_line.split.map &.to_i
if x == y
  puts a == 0 ? MAX_C : 0
else
  puts 1.to((a + 1) * 100).count { |i|
    x * i // 100 < y * i // 100 + a
  }
end
0