結果
問題 |
No.56 消費税
|
ユーザー |
![]() |
提出日時 | 2020-11-24 17:24:20 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 613 bytes |
コンパイル時間 | 2,056 ms |
コンパイル使用メモリ | 160,504 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-23 18:41:58 |
合計ジャッジ時間 | 3,021 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for(int (i) = 0; (i) < (n); (i)++) #define repe(i, n) for(i = 0; i <= (n); i++) #define repr(i, n) for(int (i) = (n); (i) > 0; --(i)) #define repre(i, n) for(int (i) = (n); (i) >= 0; --(i)) #define repi(i, n) for(int (i) = 1; (i) < (n); ++(i)) using namespace std; using ll = long long; using ull = unsigned long long; using P = pair<int,int>; using Graph = vector<vector<int>>; const int INF = INT32_MAX; const ll MOD = 1e9+7; signed main() { ll P, T; cin >> P >> T; double tax = (100 + T) * P; cout << (ll)(tax / 100) << endl; return 0; }