結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2016-11-23 11:05:15 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 10:18:50 |
合計ジャッジ時間 | 900 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 4 |
コンパイルメッセージ
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.%lld\n", ans1, ans2); return 0; }