結果
問題 | No.8023 素数判定するだけ |
ユーザー |
|
提出日時 | 2022-08-19 16:19:14 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 1,278 ms |
コンパイル使用メモリ | 105,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 23:28:54 |
合計ジャッジ時間 | 5,090 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
#include<iostream> #include<string> #include<functional> using namespace std; int main(){ int n; cin>>n; bool p=true; for(int i=string("##").size();i<n;i=plus()(i,string("#").size())) if(n%i==string().size()) p=false; cout<<(p?"YES":"NO")<<endl; }