From dd684349c67c988ef19707cb65e637b6906fac75 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Fri, 8 Jul 2022 19:54:42 +0200 Subject: Solved some new problems --- codechef/countingWords/main | Bin 0 -> 22576 bytes codechef/countingWords/main.cpp | 15 +++++++++++++++ codechef/countingWords/main_input0.txt | 5 +++++ codechef/countingWords/main_output0.txt | 4 ++++ 4 files changed, 24 insertions(+) create mode 100755 codechef/countingWords/main create mode 100644 codechef/countingWords/main.cpp create mode 100644 codechef/countingWords/main_input0.txt create mode 100644 codechef/countingWords/main_output0.txt (limited to 'codechef/countingWords') diff --git a/codechef/countingWords/main b/codechef/countingWords/main new file mode 100755 index 0000000..418459e Binary files /dev/null and b/codechef/countingWords/main differ diff --git a/codechef/countingWords/main.cpp b/codechef/countingWords/main.cpp new file mode 100644 index 0000000..b205754 --- /dev/null +++ b/codechef/countingWords/main.cpp @@ -0,0 +1,15 @@ +#include + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int n, m; + cin >> n >> m; + cout << n * m << endl; + } +} diff --git a/codechef/countingWords/main_input0.txt b/codechef/countingWords/main_input0.txt new file mode 100644 index 0000000..18e52b9 --- /dev/null +++ b/codechef/countingWords/main_input0.txt @@ -0,0 +1,5 @@ +4 +1 1 +4 2 +2 4 +95 42 diff --git a/codechef/countingWords/main_output0.txt b/codechef/countingWords/main_output0.txt new file mode 100644 index 0000000..fbde8c0 --- /dev/null +++ b/codechef/countingWords/main_output0.txt @@ -0,0 +1,4 @@ +1 +8 +8 +3990 -- cgit v1.2.3