1 solutions

  • 0
    @ 2023-12-20 19:59:55
    #include <iostream>
    #include <bits/stdc++.h>
    using namespace std;
    bool judge(int x){
    	if(x%3 == 2 && x%5 == 3 && x%7 == 2){
    		return true;
    	}else{
    		return false;
    	}
    }
    int main()
    {
    	for(int i = 1 ;i <= 500 ;i++){
    		if(judge(i)){
    			cout << i <<endl;
    		}
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    354
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    3
    Tags
    # Submissions
    95
    Accepted
    50
    Uploaded By