結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-22 16:37:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 394 bytes |
| コンパイル時間 | 1,048 ms |
| コンパイル使用メモリ | 102,160 KB |
| 最終ジャッジ日時 | 2025-02-16 12:18:59 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 3 |
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
using namespace std;
int main()
{
int 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