結果
| 問題 |
No.56 消費税
|
| ユーザー |
nmnmnmnmnmnmnm
|
| 提出日時 | 2014-11-04 22:32:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 54,492 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 17:25:41 |
| 合計ジャッジ時間 | 1,694 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 23 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int d,p;
cin >> d >> p;
// 正解
int ans = d*(100+p)/100;
// 間違い
int bad = 1.*d*(1.01*p);
cout << bad << endl;
return 0;
}
nmnmnmnmnmnmnm