結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
![]() |
提出日時 | 2020-09-12 01:40:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 774 bytes |
コンパイル時間 | 6,453 ms |
コンパイル使用メモリ | 399,712 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 13:23:26 |
合計ジャッジ時間 | 5,969 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 6 |
ソースコード
// 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_100; 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(); }