結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-01 16:15:02 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 282 bytes |
| コンパイル時間 | 750 ms |
| コンパイル使用メモリ | 77,052 KB |
| 最終ジャッジ日時 | 2025-02-20 18:56:17 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 WA * 1 |
ソースコード
#include <iostream>
#include <cmath>
#define ll long long
using namespace std;
int main() {
ll n, m;
float res = 0;
ll cnt = 0, k = 0;
cin >> n >> m;
res = static_cast<float>(m) / 100;
cnt = res * n;
k = cnt + n;
cout << k << endl;
return 0;
}