From a304d8965863d73cbacdfccf984b91a1f18b28d4 Mon Sep 17 00:00:00 2001 From: Hugo Bezerra Date: Tue, 20 Oct 2020 14:52:17 -0300 Subject: [PATCH 1/2] Add codeforces 1433a --- codeforces/A/1433a | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 codeforces/A/1433a diff --git a/codeforces/A/1433a b/codeforces/A/1433a new file mode 100644 index 0000000..3aa4384 --- /dev/null +++ b/codeforces/A/1433a @@ -0,0 +1,35 @@ +#include +#include + +using namespace std; + +int sum(int x) +{ + int t = 0; + + x++; + + while(x--) + { + t += x; + } + + return t; +} + +int main () { + + int n; + string str; + + cin >> n; + + while(n--) + { + cin >> str; + + cout << ((str.at(0) - '1') * 10) + ( sum( str.size() ) ) << endl; + } + + return 0; +} From e224d13aa89c52bd20733990f661499d7484a914 Mon Sep 17 00:00:00 2001 From: Hugo Bezerra Date: Tue, 20 Oct 2020 14:54:39 -0300 Subject: [PATCH 2/2] Rename 1433a to 1433a.cpp --- codeforces/A/{1433a => 1433a.cpp} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename codeforces/A/{1433a => 1433a.cpp} (100%) diff --git a/codeforces/A/1433a b/codeforces/A/1433a.cpp similarity index 100% rename from codeforces/A/1433a rename to codeforces/A/1433a.cpp