結果

問題 No.56 消費税
ユーザー kazu116kazu116
提出日時 2019-05-10 15:52:44
言語 Swift
(5.10.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 130 bytes
コンパイル時間 2,871 ms
コンパイル使用メモリ 125,324 KB
実行使用メモリ 8,012 KB
最終ジャッジ日時 2023-08-20 12:23:40
合計ジャッジ時間 4,411 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,740 KB
testcase_01 AC 3 ms
7,900 KB
testcase_02 AC 3 ms
7,856 KB
testcase_03 AC 3 ms
7,920 KB
testcase_04 AC 3 ms
7,820 KB
testcase_05 AC 3 ms
7,892 KB
testcase_06 AC 3 ms
7,804 KB
testcase_07 AC 4 ms
7,928 KB
testcase_08 AC 3 ms
7,816 KB
testcase_09 AC 3 ms
7,816 KB
testcase_10 AC 3 ms
7,804 KB
testcase_11 AC 4 ms
7,812 KB
testcase_12 AC 4 ms
7,924 KB
testcase_13 AC 3 ms
7,804 KB
testcase_14 AC 3 ms
7,856 KB
testcase_15 AC 3 ms
7,736 KB
testcase_16 AC 4 ms
7,808 KB
testcase_17 AC 3 ms
7,892 KB
testcase_18 AC 3 ms
7,924 KB
testcase_19 AC 3 ms
7,736 KB
testcase_20 AC 3 ms
8,012 KB
testcase_21 AC 3 ms
7,808 KB
testcase_22 AC 3 ms
7,856 KB
testcase_23 AC 4 ms
8,008 KB
testcase_24 AC 4 ms
7,888 KB
testcase_25 AC 4 ms
8,012 KB
testcase_26 AC 3 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let a:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
let b:Int = a[0] + Int(Double(a[0]) * Double(a[1]) / 100.0)
print(b)
0