結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
seiritsu21
|
| 提出日時 | 2019-02-27 01:10:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 1,058 ms |
| コンパイル使用メモリ | 159,588 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 04:59:08 |
| 合計ジャッジ時間 | 1,753 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
seiritsu21