#include <iostream>- #include <cmath>
- using namespace std;
- int main()
- {
- long double a, n, m, temp;
- cout.precision(22);
- cin >> n >> m >>a;
- if(m < n)
- {
- temp = m;
- m = n;
- n = temp;
- }
- if(a >= m)
- {
- cout << ceil(n/a) << endl;
- }
- else
- {
- cout << ceil(m/a)*ceil(n/a) << endl;
- }
- return 0;
- }
Sunday, April 26, 2020
Subscribe to:
Post Comments (Atom)
Aptitude test assistant programmer 2018
#include <stdio.h> #include <stdlib.h> int main() { char str[100]; int i; int space=0; printf("Enter a string\n")...
-
104A - Blackjack #include < bits / stdc ++. h > using namespace std ; int main (){ int n ; cin >> n ; int d = n - 10 ; ...
-
A. YES or YES? There is a string s � of length 3 3 , consisting of uppercase and lowercase English letters. Check if it is equal to &qu...
-
#include <iostream> using namespace std ; int main () { int n ; int q = 2 ; int c = 0 ; cin >> n ; if ( n % 2 == ...
No comments:
Post a Comment