結果
| 問題 | No.882 約数倍数 |
| コンテスト | |
| ユーザー |
zeke
|
| 提出日時 | 2019-09-13 21:46:24 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 82,284 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-25 12:46:39 |
| 合計ジャッジ時間 | 978 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 5 WA * 5 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:10:9: warning: 'a' is used uninitialized [-Wuninitialized]
10 | if(a%b==0){
| ~^~
main.cpp:9:9: note: 'a' was declared here
9 | int a,b;
| ^
main.cpp:10:9: warning: 'b' is used uninitialized [-Wuninitialized]
10 | if(a%b==0){
| ~^~
main.cpp:9:11: note: 'b' was declared here
9 | int a,b;
| ^
ソースコード
#include <iostream>
#include <vector>
#include <cassert>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
int a,b;
if(a%b==0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
zeke