From 56ba46a3ac8009c57ec21676e1fe0c4eb4ba3437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Fri, 20 Dec 2024 17:16:47 +0000 Subject: [PATCH] Add 2024/task1.cpp --- 2024/task1.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 2024/task1.cpp diff --git a/2024/task1.cpp b/2024/task1.cpp new file mode 100644 index 0000000..b5522c2 --- /dev/null +++ b/2024/task1.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main () +{ + int a; + + cin >> a; + + cout + << (a / 100) // 3 + << (a % 10) // 1 + << (a / 10 % 10) // 2 + ; + + + return 0; +} \ No newline at end of file