Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
18250 | xingru | 满足条件的数累加 | C++ | Accepted | 0 MS | 244 KB | 166 | 2023-05-24 18:17:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,num=0; cin >> m >> n; while(m<=n){ if(m%17==0) num=m+num; m++; } cout << num; }