結果

問題 No.882 約数倍数
ユーザー zeke
提出日時 2019-09-13 21:46:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 1,166 ms
コンパイル使用メモリ 62,732 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-04 04:06:01
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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:10:9: warning: ‘b’ is used uninitialized [-Wuninitialized]

ソースコード

diff #

#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;
    }
}
0