Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46973 | ☩Deutschland☩ | 数位和为偶数的数 | C++ | Accepted | 0 MS | 244 KB | 169 | 2024-05-09 21:31:35 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ if((i%10+i/10)%2==0){ cout<<i<<" "; } } return 0; }