結果

問題 No.858 わり算
ユーザー ngtkanangtkana
提出日時 2020-02-24 18:29:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 1,556 ms
コンパイル使用メモリ 163,008 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 12:24:40
合計ジャッジ時間 2,081 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 1 ms
6,944 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,944 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using longlong=long long;

int main(){
    std::cin.tie(nullptr);std::cin.sync_with_stdio(false);
    longlong a,b;std::cin>>a>>b;
    std::cout<<a/b<<'.';
    a&=b;
    for(int i=0;i<50;i++){
        a*=10;
        std::cout<<a/b;
        a%=b;
    }
    std::cout<<std::endl;
}
0