結果

問題 No.8114 Prime Checker+1
ユーザー yuusaan
提出日時 2025-02-21 10:10:37
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 95,288 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-02-21 12:38:23
合計ジャッジ時間 3,965 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

int main(){
    string N;
    cin >> N;
    reverse(N.begin(),N.end());
    int x = stoi(N.substr(0,1));
    if(x %2 == 0){
        cout << 1 << endl << "No" << endl;
    }
    else{
        cout << 2 << endl << "No" << endl;
    }
    return 0;
}
0