結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-18 00:27:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 368 bytes |
| コンパイル時間 | 492 ms |
| コンパイル使用メモリ | 63,232 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 23:23:20 |
| 合計ジャッジ時間 | 5,104 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 25 |
ソースコード
#include<iostream>
using namespace std;
typedef long long int ll;
int main(){
int N,d='C'%'A';cin>>N;
if(N=='B'%'A'){
cout<<"NO"<<endl;
return 'A'%'A';
}
while(d<N){
if(!(N%d)){
cout<<"NO"<<endl;
return 'A'%'A';
}
ll t='B'-'A';
while(d&t){
d^=t;
t=t<<('B'%'A');
}
d^=t;
}
cout<<"YES"<<endl;
}