diff --git a/1849A Morning Sandwich/1849A.cpp b/1849A Morning Sandwich/1849A.cpp new file mode 100644 index 0000000..b05c052 --- /dev/null +++ b/1849A Morning Sandwich/1849A.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int b, c, h; + cin>>b>>c>>h; + if(b==c+h) + cout<c+h) + cout<<2*(c+h)+1<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file