diff options
Diffstat (limited to 'contests/Codechef_Starters_41/B/main.cpp')
| -rw-r--r-- | contests/Codechef_Starters_41/B/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contests/Codechef_Starters_41/B/main.cpp b/contests/Codechef_Starters_41/B/main.cpp new file mode 100644 index 0000000..6508f2d --- /dev/null +++ b/contests/Codechef_Starters_41/B/main.cpp @@ -0,0 +1,16 @@ +#include<bits/stdc++.h> + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int x, y , z; + cin >> x >> y >> z; + cout << (x * 5 + y * 10) / z << endl; + + } +} |
