19 条题解

  • 1
    @ 2024-5-3 12:29:31

    #include using namespace std; int main(){ int n; cin>>n; if(n%30&&n%50) { cout<<"YES"; } else{ cout<<"NO" ; } return 0; }

    • 1
      @ 2024-4-12 21:52:50
      #include <queue>
      #include <math.h>
      #include <stack>
      #include <stdio.h>
      #include <iostream>
      #include <vector>
      #include <iomanip>
      #include <string.h>
      #include <algorithm>
      #include <bits/stdc++.h>
      using namespace std;
      const int N = 1e6 + 10;
      const int INF = 0x3f3f3f3f;
      int main()
      {
      	int a;
      	cin >> a;
      	if( a % 3 == 0 && a % 5 == 0 )
      	{
      		cout << "YES";
      	}
      	else
      	{
      		cout << "NO";
      	}
      	return 0;
      }
      
      • 0
        @ 2025-12-6 19:47:57

        、、、cpp #include using namespace std; int main() { int a; cin >> a; if (a % 3 == 0 && a % 5 == 0) cout << "YES"; else cout << "NO"; return 0; } 、、、

        • 0
          @ 2025-7-9 11:23:49

          #include

          using namespace std;

          int main()

          {

          int a;
          cin >> a;
          if( a % 3 == 0 && a % 5 == 0 )
          {
          cout << "YES";
          }
          else
          {
          cout << "NO";
          }
          return 0;
          

          }

          • 0
            @ 2024-12-11 14:00:33
            n = int(input())
            if n % 15 == 0:
                print("YES")
            else:
                print("NO")
            
            • 0
              @ 2024-5-29 20:25:28
              col1 col2 col3
              #include
              using namespace std;
              int main()
              {
              int a,b,c;
              cin>>a>>b>>c;
              if(a+b>c){if (c+b>a){if(a+c>b){cout<<"yes";
              }else{cout<<"no";}
              return 0;
              }
              • 0
                @ 2024-5-29 20:24:22

                #include using namespace std; int main() { int n; cin>>n; if(n%30&&n%50) { cout<<"YES"; } else{ cout<<"NO" ; } return 0; }

                • 0
                  @ 2023-8-12 11:33:24
                  #include <iostream>
                  #include <stdio.h>
                  #include <iomanip>
                  #include <math.h>
                  using namespace std;
                  const int N = 1e6 + 10;
                  const int INF = 0x3f3f3f3f;
                  int main()
                  {
                  	int a;
                  	cin >> a;
                  	if( a % 3 == 0 && a % 5 == 0 )
                  	{
                  		cout << "YES";
                  	}
                  	else
                  	{
                  		cout << "NO";
                  	}
                  	return 0;
                  }
                  
                  • 0
                    @ 2023-5-11 18:05:45

                    #include

                    using namespace std;

                    int main()

                    {

                    int a;

                    cin>>a;

                    if(a%30&&a%50)

                    {

                    cout<<"YES";

                    }

                    else

                    { cout<<"NO";

                    }

                    return 0;

                    }

                    • 0
                      @ 2022-12-10 18:26:55

                      可恶再度把添胜第3周没做完的愤怒发泄在题解上(?

                      最小公倍数指一个数能同时除以两个或以上的数,并且这个数是最小的,那这个数就是这些数 的最小公倍数。(不懂的话看五年级下册数学书去吧

                      这一题,能同时整除3和5的数也一定能整除3和5的最小公倍数15(15既能整除3又能整除5,而且15以内的正整数都不能同时整除3和5

                      上代码:

                      #include<bits/stdc++.h>
                      using namespace std;
                      
                      int main(){
                      	int n;
                      	cin>>n;
                      	if(n%15==0)cout<<"YES";
                      	else cout<<"NO";
                      	return 0;
                      }
                      

                      因为懒所以不加注释了,,

                      欢迎来luogu找我玩!

                      • 0
                        @ 2022-12-9 13:51:04

                        #include using namespace std; int main(){ int a; cin>>a; if(a%30&&a%50){ cout<<"YES"; }else{ cout<<"NO"; } }

                        • 0
                          @ 2022-12-4 16:42:33
                          • #include <stdio.h>
                            #include <iostream>
                            #include <math.h>
                            #include <iomanip>
                            using namespace std;
                            int main()
                            {
                            	int n;
                            	cin>>n;
                            	if(n % 3 == 0 && n % 5 == 0)
                            	{
                            		cout<<"YES";
                            	}
                            	else
                            	{
                            		cout<<"NO";
                            	}
                            }
                            

                            Copy *

                          • 0
                            @ 2022-1-3 9:29:47
                            #include <stdio.h>
                            #include <iostream>
                            #include <math.h>
                            #include <iomanip>
                            using namespace std;
                            int main()
                            {
                            	int n;
                            	cin>>n;
                            	if(n % 3 == 0 && n % 5 == 0)
                            	{
                            		cout<<"YES";
                            	}
                            	else
                            	{
                            		cout<<"NO";
                            	}
                            }
                            
                            • -1
                              @ 2023-4-4 21:38:33

                              #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%30&&n%50) cout<<"YES"; else cout<<"NO"; return 0; }

                              • -1
                                @ 2023-1-12 11:48:07

                                #include #include using namespace std; int main(){ int a; cin>>a; if (a%30 and a%50){ cout<<"YES"; } else{ cout<<"NO"; } }

                                • -2
                                  @ 2022-3-30 20:36:09

                                  #include

                                  using namespace std;

                                  int main(){

                                  int a;
                                  
                                  cin>>a;
                                  
                                  if(a%15==0){
                                  
                                  	cout<<"YES";
                                  
                                  }else{
                                  
                                  	cout<<"NO";
                                  
                                  }
                                  

                                  } //极简主义

                                  • -4
                                    @ 2022-7-2 18:38:25

                                    #include #include<stdio.h> using namespace std; int main() { long long a; cin>>a; if(a%30&&a%50) { cout<<"YES"<<endl; }else { cout<<"NO"<<endl; } }

                                    • -5
                                      @ 2022-1-3 9:23:50
                                      #include <stdio.h>
                                      #include <iostream>
                                      #include <math.h>
                                      #include <iomanip>
                                      using namespace std;
                                      int main()
                                      {
                                      	int n;
                                      	cin>>n;
                                      	if(n%3==0&&n%5==0)
                                      	{
                                      		cout<<"YES";
                                      	}
                                      	else
                                      	{
                                      		cout<<"NO";
                                      	}
                                      }
                                      ``
                                      • -6
                                        @ 2021-10-20 13:44:31

                                        n = int(input()) if n % 3 == 0 and n % 5 == 0 and n != 0: print("YES") if n % 3 != 0 or n % 5 != 0 or n % 3 != 0 and n % 5 == 0 or n % 3 == 0 and n % 5 != 0 or n == 0: print("NO")

                                        • 1

                                        判断一个数能否同时被3和5整除

                                        信息

                                        ID
                                        870
                                        时间
                                        1000ms
                                        内存
                                        128MiB
                                        难度
                                        4
                                        标签
                                        递交数
                                        817
                                        已通过
                                        404
                                        上传者