結果

問題 No.858 わり算
ユーザー Konton7
提出日時 2020-02-05 12:05:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 514 bytes
コンパイル時間 2,069 ms
コンパイル使用メモリ 192,708 KB
最終ジャッジ日時 2025-01-08 22:19:50
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:24:17: warning: unknown conversion type character ‘\x0a’ in format [-Wformat=]
   24 |     printf("%.50\n", c);
      |                 ^~
main.cpp:24:12: warning: too many arguments for format [-Wformat-extra-args]
   24 |     printf("%.50\n", c);
      |            ^~~~~~~~

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using PII = std::pair<int, int>;
using PLL = std::pair<ll, ll>;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define DEBUG

int main()
{

#ifdef DEBUG
    cout << "DEBUG MODE" << endl;
    ifstream in("input.txt"); //for debug
    cin.rdbuf(in.rdbuf());    //for debug
#endif

    double a, b, c;
    cin >> a >> b;
    c = a / b;
    printf("%.50\n", c);
    

    return 0;
}
0