Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
21147 | xingru | 满足条件的数累加 | C++ | Accepted | 0 MS | 256 KB | 166 | 2023-06-23 15:16:31 |
#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; }