2 条题解

  • 0
    @ 2026-7-10 16:30:58
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a;
    	cin >> a;
    	if (a % 2 == 0 || a % 3 == 0) {
    		cout << "Y";
    	} else {
    		cout << "N";
    	}
    	return 0;
    }
    
    
    
    • 0
      @ 2026-7-7 14:53:26

      #include <bits/stdc++.h> using namespace std;

      int main() { int n; cin >> n; if (n % 2 == 0 || n % 3 == 0) { cout << "Y"; } else { cout << "N";

      	return 0;
      }
      

      }

      • 1

      信息

      ID
      30628
      时间
      1000ms
      内存
      256MiB
      难度
      8
      标签
      递交数
      11
      已通过
      9
      上传者