結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2014-11-21 14:33:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 59,804 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 01:46:49 |
合計ジャッジ時間 | 1,590 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main(){ int d, p; while(cin >> d >> p){ cout << (int)floor(d * (100.0 + p) / 100.0) << endl; } }