結果
| 問題 | No.3498 Modulo Equation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 21:19:06 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 2,485 ms |
| コンパイル使用メモリ | 329,128 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 21:19:15 |
| 合計ジャッジ時間 | 6,636 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 30 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:22: warning: 'a' is used uninitialized [-Wuninitialized]
7 | if (x%a==x%b) {
| ~^~
main.cpp:5:13: note: 'a' was declared here
5 | int a, b;
| ^
main.cpp:7:27: warning: 'b' is used uninitialized [-Wuninitialized]
7 | if (x%a==x%b) {
| ~^~
main.cpp:5:16: note: 'b' was declared here
5 | int a, b;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
for (int x = 1; x <= 100000; ++x) {
if (x%a==x%b) {
cout << x << endl;
break;
}
}
}