結果
問題 | No.285 消費税2 |
ユーザー |
![]() |
提出日時 | 2015-12-14 16:37:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 53,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 12:33:56 |
合計ジャッジ時間 | 1,275 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <iostream> #define rep(i,n) for(int i=0;i<(n);i++) #define ALL(A) A.begin(), A.end() using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); ll d; cin >> d; ll sum = d * 108; ll digit = (sum % 100LL); sum /= 100LL; cout << sum << '.'; if (digit < 10) cout << '0'; cout << digit << endl; return 0; }