結果

問題 No.485 方程式のお勉強
ユーザー snrnsidy
提出日時 2021-07-04 02:13:34
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 191,872 KB
最終ジャッジ日時 2025-01-22 17:24:41
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	int A, B;

	cin >> A >> B;

	if (abs(B) % abs(A) == 0)
	{
		cout << B / A << '\n';
	}
	else
	{
		cout << "NO" << '\n';
	}
	return 0;
}
0