Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
42247 | yanghaowen | 整除 | C++ | Accepted | 0 MS | 240 KB | 190 | 2024-02-25 09:27:09 |
#include<iostream> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ if(i%7==0){ cout<<i<<" "; } } return 0; }