結果

問題 No.858 わり算
ユーザー forest3
提出日時 2020-03-30 12:06:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 1,467 ms
コンパイル使用メモリ 167,376 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-11 18:39:21
合計ジャッジ時間 1,904 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
	int A, B;
	cin >> A >> B;

	int ans = A / B;
	int m = A - ans;
	cout << ans << ".";
	for( int i = 0; i < 50; i++ ) {
		cout << m * 10 / B;
		m = m * 10 % B;
	}
	cout << endl;
}
0