summaryrefslogtreecommitdiff
path: root/1A
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
committermjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
commit7172d4f401f22192abc1e116a9a88c5078eb082f (patch)
tree65b099c01ddea514a99ad68bd6306fed1a6f8b67 /1A
initial commitHEADmaster
Diffstat (limited to '1A')
-rwxr-xr-x1A/mainbin0 -> 16176 bytes
-rw-r--r--1A/main.cpp21
2 files changed, 21 insertions, 0 deletions
diff --git a/1A/main b/1A/main
new file mode 100755
index 0000000..de28b64
--- /dev/null
+++ b/1A/main
Binary files differ
diff --git a/1A/main.cpp b/1A/main.cpp
new file mode 100644
index 0000000..d4a9bbd
--- /dev/null
+++ b/1A/main.cpp
@@ -0,0 +1,21 @@
+#include <iostream>
+
+using namespace std;
+
+int main() {
+ long long a,b,c;
+ cin>>a>>b>>c;
+
+ long long widthwise = a / c;
+ if(a % c != 0){
+ widthwise++;
+ }
+ long long lengthwise = b / c;
+ if(b % c != 0){
+ lengthwise++;
+ }
+ long long result = lengthwise*widthwise;
+ cout<<result;
+
+ return 0;
+}