結果
問題 |
No.56 消費税
|
ユーザー |
|
提出日時 | 2016-02-18 08:53:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 427 ms |
コンパイル使用メモリ | 56,028 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 03:06:21 |
合計ジャッジ時間 | 1,278 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <iostream> #include <string> int main(){ int D,P; std::cin >> D >> P; auto precise = std::to_string(D*(1 + P*0.01)); for(const auto& c : precise){ if('.' == c){ break; } std::cout << c; } std::cout << std::endl; return 0; }