1 条题解

  • 1
    @ 2024-10-13 15:17:53
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	long long a,b = 0;
    	cin >> a;
    	for(int i = 1; i <= a; i++){
    		if(a % i == 0){
    			b += 1;
    		}else{
    			
    		}	
    	}
    	if(b == 2){
    		cout << "Y";	
    	}else{
    		cout << "N";
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    116
    时间
    1000ms
    内存
    64MiB
    难度
    8
    标签
    递交数
    25
    已通过
    4
    上传者