Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
336463 黄浙峰老师 【C2-1】输出是2的倍数,但非3的倍数的数 C++ 通过 100 42 MS 244 KB 168 2025-07-28 10:21:46

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ if(i%2==0&&i%3!=0){ cout<<i<<endl; } } return 0; }


测评信息: