Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
29560 | lnx | 满足条件的数累加 | C++ | Accepted | 1 MS | 248 KB | 178 | 2023-10-31 18:56:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,sum=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(i%17==0){ sum+=i; } } cout<<sum; return 0; }