Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142245 Kevin 符合条件的数 C++ Accepted 0 MS 268 KB 208 2026-01-02 13:42:38

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int i=1,s=0; while(s!=10){ if(i%a==1&&i%b==1&&i%c==1){ s++; cout<<i<<" "; } i++; } return 0; }