結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-22 16:39:29 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 400 bytes |
| コンパイル時間 | 3,090 ms |
| コンパイル使用メモリ | 133,924 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-01-07 14:57:08 |
| 合計ジャッジ時間 | 3,702 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
using namespace std;
int main()
{
long long a, b, r, i=0;
cin >> a >> b;
string s = "";
while (i < 51){
s += to_string(a/b);
if (i == 0) s += ".";
r = a%b;
a = r*10;
i++;
}
cout << s << endl;
}
kpinkcat