From fdc443c2a55140a3de3c7e3de3bf16c8c664d08d Mon Sep 17 00:00:00 2001 From: Gowry Sugathan Date: Sat, 26 Oct 2019 16:02:48 +0530 Subject: [PATCH] add 3_piles_of_candies --- CodeForces/three_piles_of_candies.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CodeForces/three_piles_of_candies.cpp diff --git a/CodeForces/three_piles_of_candies.cpp b/CodeForces/three_piles_of_candies.cpp new file mode 100644 index 0000000..facd734 --- /dev/null +++ b/CodeForces/three_piles_of_candies.cpp @@ -0,0 +1,13 @@ +#include +using namespace std; +int main(){ + int t; + long long m, n, r; + cin>>t; + for(int i = 0; i < t; i++) { + cin>>m>>n>>r; + long long s = m+n+r; + cout<