Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
23696 | yihang | 【入门】韩信点兵 | C++ | 解答错误 | 0 MS | 240 KB | 249 | 2023-07-16 15:21:26 |
#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){ s[i]=i; t++; cout<<s[i];} return 0;} if(t==0)cout<<"No answer"; }