摘要:
#include <iostream> using namespace std; int main() { long long n, m, a, r, c; cin>>n>>m>>a; r=n/a; if(n%a!=0) ++r; c=m/a; if(m%a!=0) ++c; cout<<r*c<< 阅读全文
摘要:
#include <iostream> using namespace std; int main() { int a; cin>>a; if((a>=4) && (a%2==0)) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; } 阅读全文
摘要:
#include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); int i, j; int Count=0; for(i=1; i<=n; ++i) { if((i%2)!=0) { for(j=0; j<m; ++j) print 阅读全文