From c52b36c6a37fdb1d1de146d3939cb42e2c691f44 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sat, 5 Nov 2022 01:28:02 +0200 Subject: Solved 6 problem in filtrationContest and restructured the repo --- codeforces/SumsOfSubSequence/SumsOfSubSequence.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 codeforces/SumsOfSubSequence/SumsOfSubSequence.cpp (limited to 'codeforces/SumsOfSubSequence') diff --git a/codeforces/SumsOfSubSequence/SumsOfSubSequence.cpp b/codeforces/SumsOfSubSequence/SumsOfSubSequence.cpp new file mode 100644 index 0000000..9460ce3 --- /dev/null +++ b/codeforces/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