結果
| 問題 | No.285 消費税2 |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-10-09 22:47:23 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 22,912 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 04:23:25 |
| 合計ジャッジ時間 | 896 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 26 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘double’ [-Wformat=]
6 | printf("%lld\n",(double)n+(double)n/100*8);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long int double
| %f
main.cpp:5:26: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | long long n;scanf("%lld",&n);
| ~~~~~^~~~~~~~~~~
ソースコード
#include <cstdio>
//namaega184
int main(){
long long n;scanf("%lld",&n);
printf("%lld\n",(double)n+(double)n/100*8);
return 0;
}
184