結果
問題 |
No.8114 Prime Checker+1
|
ユーザー |
|
提出日時 | 2025-02-21 23:23:53 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 8,182 ms |
コンパイル使用メモリ | 253,816 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-21 23:24:06 |
合計ジャッジ時間 | 10,752 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; if(int(s[s.size()-1]-'0')%2==0){ cout<<0<<endl; cout<<"No"<<endl; }else{ cout<<1<<endl; cout<<"Yes"<<endl; } }