aboutsummaryrefslogtreecommitdiff
path: root/contests/Starters41/B/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contests/Starters41/B/main.cpp')
-rwxr-xr-xcontests/Starters41/B/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/contests/Starters41/B/main.cpp b/contests/Starters41/B/main.cpp
new file mode 100755
index 0000000..6508f2d
--- /dev/null
+++ b/contests/Starters41/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;
+
+ }
+}