codeforces 1A - Theater Square
从上周开始在cf上做水题了 慢慢把这些题的代码贴上来
#include<stdio.h> int main() { int m,n,a; scanf("%d%d%d",&m,&n,&a); printf("%-I64d\n",(long long)(m%a == 0 ? m/a : m/a +1)*((n%a == 0 ? n/a : n/a + 1))); return 0; }
从上周开始在cf上做水题了 慢慢把这些题的代码贴上来
#include<stdio.h> int main() { int m,n,a; scanf("%d%d%d",&m,&n,&a); printf("%-I64d\n",(long long)(m%a == 0 ? m/a : m/a +1)*((n%a == 0 ? n/a : n/a + 1))); return 0; }