結果
問題 | No.485 方程式のお勉強 |
ユーザー |
|
提出日時 | 2018-08-08 23:27:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 699 bytes |
コンパイル時間 | 735 ms |
コンパイル使用メモリ | 92,908 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-23 04:14:22 |
合計ジャッジ時間 | 1,542 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<string> #include<cmath> #include<climits> #include<map> #include<set> #include<queue> #include<stack> #include<bitset> #include<iomanip> using namespace std; #define rep(i,j,n) for(int i=(j);i<(n);++i) #define erep(i,j,n) for(int i=(j);i<=(n);++i) #define all(i) i.begin(),i.end() #define rall(i) i.rbegin(),i.rend() #define INF 1e9 const int mod = 1e9 + 7; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<string> vs; typedef vector<vector<string>> vvs; typedef pair<int, int> pi; typedef long long i64; int main() { int a, b; cin >> a >> b; if (b % a == 0) cout << b / a << endl; else cout << "NO\n"; }