結果
問題 | No.485 方程式のお勉強 |
ユーザー |
👑 |
提出日時 | 2019-03-19 10:55:26 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 461 ms |
コンパイル使用メモリ | 59,924 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 14:29:40 |
合計ジャッジ時間 | 1,137 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include <iostream>#include <cstdlib>#include <string>#include <vector>#include <algorithm>int main(){int a, b, x;std::cin >> a >> b;x = b / a;if(x * a == b){std::cout << x;} else {std::cout << "NO";}std::cout << std::endl;return 0;}