結果
問題 |
No.8114 Prime Checker+1
|
ユーザー |
![]() |
提出日時 | 2025-02-22 10:03:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 535 bytes |
コンパイル時間 | 2,052 ms |
コンパイル使用メモリ | 182,000 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-22 10:03:44 |
合計ジャッジ時間 | 5,128 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 14 |
ソースコード
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) int INF = (1 << 30); long long INFLL = (1LL << 62); int main(){ string n; cin>>n; ll nsize=n.size(); if(n=="2"){ cout<<0<<endl; cout<<"Yes"<<endl; } char charn=n[nsize-1]; ll intn=charn-'0'; if(intn%2==0){ cout<<0<<endl; cout<<"No"<<endl; } else{ cout<<1<<endl; cout<<"Yes"<<endl; } return 0; }