結果
問題 | No.56 消費税 |
ユーザー |
|
提出日時 | 2022-09-01 22:31:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 1,450 ms |
コンパイル使用メモリ | 166,552 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 14:13:24 |
合計ジャッジ時間 | 2,505 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n, m) for (ll i = n; i < (ll)(m); i++) #define _rep(i, n, m) for (ll i = n; i <= (ll)(m); i++) using ll = long long; int main() { // $D // P% int D; // integer 1 to 10^7 int P; // tax rate integer 1 to 100 cin >> D >> P; double tax = (double)D * P * 0.01; cout << (int)(D + tax) << endl; }