結果

問題 No.1011 Infinite Stairs
ユーザー otamay6otamay6
提出日時 2019-11-21 21:39:15
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 63,988 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 06:19:51
合計ジャッジ時間 3,053 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 WA -
testcase_07 RE -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 RE -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 WA -
testcase_20 WA -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cassert>
int main(){
    int N;std::cin>>N;
    assert(1<=N&&N<=100);
    bool ok=false;
    for(int i=2;i<N;++i){
        if(N%i==0) ok=true;
    }
    std::cout<<(ok?"Yes":"No")<<std::endl;
}
0