Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335147 李俞家骅 【C2-1】输出是2的倍数,但非3的倍数的数 C++ 通过 100 26 MS 236 KB 185 2025-07-22 09:09:15

Tests(3/3):


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


测评信息: