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