結果
問題 |
No.56 消費税
|
ユーザー |
![]() |
提出日時 | 2019-02-27 01:09:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 1,063 ms |
コンパイル使用メモリ | 159,888 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 04:59:05 |
合計ジャッジ時間 | 1,906 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 13 WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; int gcd(int a, int b) { int c; if (a < b) { a+=b; b=a-b; a-=b; } while (b != 0) { c = a % b; a = b; b = c; } return a; } int main(void){ int d, p, ans; cin >> d >> p; ans = d * (1 + p * 0.01); cout << ans << endl; }