結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-08-08 10:46:52 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 424 bytes |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 70,268 KB |
| 最終ジャッジ日時 | 2025-01-30 19:25:02 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <list>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdint.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
inline ll CountStep( const ll& D , const ll& L ) { return D >= 0 ? D / L + ( D % L == 0 ? 0 : 1 ) : CountStep( - D , L );}
int main()
{
ll D;
cin >> D;
ll P;
cin >> P;
cout << ( D * ( 100 + P ) ) / 100 << endl;
return 0;
}