結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-11-23 11:07:44 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 10:18:52 |
| 合計ジャッジ時間 | 823 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lld", &d);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main() {
long long int d;
scanf("%lld", &d);
long long int ans1 = (d * 108) / 100;
long long int ans2 = (d * 108) - (ans1 * 100);
printf("%lld.%02lld\n", ans1, ans2);
return 0;
}
くれちー