結果
| 問題 |
No.485 方程式のお勉強
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-23 16:22:40 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 368 bytes |
| コンパイル時間 | 3,096 ms |
| コンパイル使用メモリ | 275,960 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-23 16:22:45 |
| 合計ジャッジ時間 | 4,660 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
[[nodiscard]] static inline constexpr std::string solve(const int_fast32_t A, const int_fast32_t B) noexcept
{
if (B % A == 0) return std::to_string(B / A);
else return "NO";
}
int main()
{
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
int_fast32_t A, B;
std::cin >> A >> B;
std::cout << solve(A, B) << '\n';
return 0;
}