Theatre Square
来源:互联网 发布:c语言入门视频百度云 编辑:程序博客网 时间:2024/05/17 04:04
http://codeforces.com/problemset/problem/1/A
AC代码:
#include<iostream>#include<cstdio>using namespace std;int main(){ __int64 m,n,a,sum,x,y; while(scanf("%I64d%I64d%I64d",&n,&m,&a)!=EOF) { if(n%a == 0) { x = n/a; } else { x = n/a+1; } if(m%a == 0) { y = m/a; } else { y = m/a+1; } // printf("%I64d %I64d\n",x,y); sum = x*y; printf("%I64d\n",sum); } return 0;}
- theatre square
- Theatre Square
- Theatre Square
- Theatre Square
- Theatre Square
- Theatre Square
- Theatre Square
- Theatre Square
- Theatre Square
- CODEFORCES:A. Theatre Square
- A. Theatre Square
- codeforces_1A Theatre Square
- CF_1A Theatre Square
- CF1A Theatre Square
- 2715 Theatre Square
- 1A. Theatre Square
- 1A--Theatre Square
- 1A - Theatre Square
- python之强大的日志模块
- python 参数传值传引用的问题
- python 常用代码学习笔记之commands模块
- PHP学习杂记
- [转载]PHP isset()与empty()的使用区别详解
- Theatre Square
- Linux shell 进制转换
- PHP 发送HTTP post请求发送和获取
- YII 控件使用笔记
- COOKIE 和SESSION
- PHP fingerprint实现
- Scons 入门
- wget 将结果直接输出到终端
- SRM 449 div1 (practice)