結果

問題 No.1224 I hate Sqrt Inequality
ユーザー uk714
提出日時 2020-09-12 01:39:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 773 bytes
コンパイル時間 7,125 ms
コンパイル使用メモリ 402,212 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-29 13:21:29
合計ジャッジ時間 7,507 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

// https://yukicoder.me/problems/no/1224
#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
using ml = boost::multiprecision::cpp_int;
using md = boost::multiprecision::cpp_dec_float_50;
using namespace std;
#define int long long
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define ALLR(obj) (obj).rbegin(), (obj).rend()
#define CEIL(a, b) ((a - 1) / b + 1)

void solve() {
    md A, B;
    cin >> A >> B;
    md t = A / B;
    t *= B;
    if (A == t) {
        cout << "No\n";
    } else {
        cout << "Yes\n";
    }
}

signed main() {
    cin.tie(nullptr)->sync_with_stdio(false);
    solve();
}
0