結果

問題 No.858 わり算
ユーザー evawenis
提出日時 2020-06-12 18:22:56
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 6,508 ms
コンパイル使用メモリ 253,396 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-07 14:54:26
合計ジャッジ時間 7,062 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int64_t a,b; cin>>a>>b;
	cout<<a/b; cout<<'.';
	for(int i=0;i<50;++i){
		a=a%b*10;
		cout<<a/b;
	}
	cout<<"\n"s;
}
0