Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
42236 | Xiyou | 整除 | C++ | Accepted | 0 MS | 244 KB | 159 | 2024-02-25 09:19:37 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ if(i%7==0){ cout<<i<<" "; } } return 0; }