aboutsummaryrefslogtreecommitdiff
path: root/contests/Codechef_Starters_41/B
diff options
context:
space:
mode:
Diffstat (limited to 'contests/Codechef_Starters_41/B')
-rw-r--r--contests/Codechef_Starters_41/B/inp5
-rwxr-xr-xcontests/Codechef_Starters_41/B/mainbin0 -> 22592 bytes
-rw-r--r--contests/Codechef_Starters_41/B/main.cpp16
3 files changed, 21 insertions, 0 deletions
diff --git a/contests/Codechef_Starters_41/B/inp b/contests/Codechef_Starters_41/B/inp
new file mode 100644
index 0000000..c7f56f2
--- /dev/null
+++ b/contests/Codechef_Starters_41/B/inp
@@ -0,0 +1,5 @@
+4
+10 10 10
+3 1 8
+8 1 3
+4 4 1000
diff --git a/contests/Codechef_Starters_41/B/main b/contests/Codechef_Starters_41/B/main
new file mode 100755
index 0000000..20b5563
--- /dev/null
+++ b/contests/Codechef_Starters_41/B/main
Binary files differ
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;
+
+ }
+}