結果
問題 | No.485 方程式のお勉強 |
ユーザー |
![]() |
提出日時 | 2017-02-27 11:08:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 526 bytes |
コンパイル時間 | 1,673 ms |
コンパイル使用メモリ | 177,688 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 04:01:50 |
合計ジャッジ時間 | 2,273 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>const long long MOD = 1000000007;const int INF = INT_MAX / 2;const long double PI = 3.1415926;#define FOR(i, r, n) for(int i=(ll)(r); i<(ll)(n); i++)#define REP(i, n) FOR(i, (0), n)#define ALL(r) r.begin(), r.end()#define ll long long intusing namespace std;vector<pair<ll, ll>> vp;vector<vector<ll>> vv(110, vector<ll>(50, 0));vector<tuple<ll, ll, ll>> vt;set<ll> st;map<ll, ll> mp;int main(){int a, b;cin >> a >> b;if (b%a) cout << "NO" << endl;else cout << b / a << endl;}