Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7074 - Театрын талбай |
Бэрландын нийслэл дэх "Театр" талбай нь n×m хэмжээтэй тэгш ѳнцѳгт хэлбэртэй. Хотын ойг тохиолдуулж уг талбайг боржин чулуун хавтангуудаар бүрэхээр шийджээ. Хавтан бүрийн хэмжээ a×a.
Талбайг бүрэхэд хамгийн цөөндөө хэдэн хавтан шаардлагатай вэ? Хавтангуудыг эвдэлж, хувааж болохгүй, талбайг бүрэн бүрэх ёстой, талбайгаас илүү гарч болох ба хавтангийн талууд талбайн талуудтай параллел байх ёстой.
Input
Эерэг бүхэл n,m,a тоонууд нэг мѳрѳнд ѳгѳгднѳ. 1<=n,m,a<=109.
Output
Шаардлагатай хавтангуудын тоо.
Example
Input:
6 6 4
Output:
4
Нэмсэн: | Bataa |
Огноо: | 2014-02-01 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE |
Эх сурвалж: | https://codeforces.com/problemset/problem/1/A |
hide comments
|
||||||
2022-03-23 10:31:17
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:31:10
90150454 zalgaad uzeerei haramsahgui shuu |
||||||
2022-03-23 10:30:51
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:30:46
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:30:40
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:30:35
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:30:29
2021-05-25 14:57:09 ee huurhii yanaa bodtson balarsaan 2021-02-15 04:33:25 haana hiin hun bodchihvo hh 2021-01-20 05:55:26 yanaa yamar amarhan yum be 2021-01-05 10:12:36 ee huurhii yanaa bodtson balarsaan 2020-10-28 08:35:27 od+undral=huuhed 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:03 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan 2019-08-16 05:09:02 ee huurhii yanaa bodtson balarsaan |
||||||
2022-03-23 10:30:05
a |
||||||
2021-04-20 12:12:37
#include<iostream> using namespace std; int main() { int n, m, a; cin>>n>>m>>a; cout<<1LL*((n+a-1)/a)*((m+a-1)/a); } |
||||||
2020-12-28 17:29:34
help plz |