結果
問題 |
No.56 消費税
|
ユーザー |
|
提出日時 | 2021-02-05 13:11:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 674 ms |
コンパイル使用メモリ | 78,648 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 04:18:33 |
合計ジャッジ時間 | 1,551 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <iostream> #include <stdio.h> #include <vector> #include <map> #include <utility> #include <list> #include <math.h> #include <algorithm> using namespace std; int main(){ int d,p; cin>>d>>p; double ans=0; ans=d*(100+p); int tmp=(floor)((double)ans/(double)100); cout<<tmp<<endl; return 0; }