Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20828 | LeoWang | 满足条件的数累加 | C++ | Accepted | 0 MS | 244 KB | 166 | 2023-06-21 06:46:11 |
#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; }