From c7cecfca5337473def7f1c9adba208ab33a11c8e Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sat, 7 May 2022 03:30:11 +0200 Subject: Added SumsOfSubSequence from codeforces --- SumsOfSubSequence.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SumsOfSubSequence.cpp diff --git a/SumsOfSubSequence.cpp b/SumsOfSubSequence.cpp new file mode 100644 index 0000000..9460ce3 --- /dev/null +++ b/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