Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23698 yihang 【入门】韩信点兵 C++ 通过 0 MS 252 KB 221 2023-07-16 15:23:37

Tests(20/20):


#include"bits/stdc++.h" using namespace std; int s[1000]; int main(){ long long n,m,x,t=0; cin>>n>>m>>x; for(int i=10;i<=100;i++){ if(i%3==n&&i%5==m&&i%7==x){ t++; cout<<i;}} if(t==0)cout<<"No answer"; }


测评信息: