結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2024-11-21 13:01:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 2,055 ms |
コンパイル使用メモリ | 192,752 KB |
最終ジャッジ日時 | 2025-02-25 05:45:32 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long N; cin >> N; N *= 108; string ans = to_string(N); int ans_N = ans.size(); for (int i = 0; i < ans_N; i++) { if (i == ans_N - 2) { cout << "."; } cout << ans[i]; } }