aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/512_donerSospechoso.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/c/512_donerSospechoso.cpp b/c/512_donerSospechoso.cpp
new file mode 100644
index 0000000..a8914e4
--- /dev/null
+++ b/c/512_donerSospechoso.cpp
@@ -0,0 +1,13 @@
+#include <iostream>
+
+using namespace std;
+
+int main() {
+ int cases;
+ int rabbit, horse;
+ for (cin >> cases; cases > 0; cases--) {
+ cin >> rabbit;
+ cin >> horse;
+ cout << rabbit*100/(rabbit+horse) << endl;
+ }
+}