From 3a89fc707253f75f46fd5a4822817f1fd5156c40 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Mon, 30 May 2022 00:18:17 +0200 Subject: Made that every problem is its own folder to make building the code a smooth operation with a shortcut --- SumsOfSubSequence/SumsOfSubSequence.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SumsOfSubSequence/SumsOfSubSequence.cpp (limited to 'SumsOfSubSequence/SumsOfSubSequence.cpp') diff --git a/SumsOfSubSequence/SumsOfSubSequence.cpp b/SumsOfSubSequence/SumsOfSubSequence.cpp new file mode 100644 index 0000000..9460ce3 --- /dev/null +++ b/SumsOfSubSequence/SumsOfSubSequence.cpp @@ -0,0 +1,14 @@ +#include + +using namespace std; + +int main() { + int tt; cin >> tt; + while(tt--) { + vector v(7); + for(int &x : v) { + cin >> x; + } + cout << v[0] << " " << v[1] << " " << v[6] - v[1] - v[0] << endl; + } +} -- cgit v1.2.3