summaryrefslogtreecommitdiff
path: root/sem_5/codingbattle/ex1
diff options
context:
space:
mode:
authorGaspard Coulet <gaspard.coulet@mines-ales.org>2021-04-28 23:05:53 +0200
committerGaspard Coulet <gaspard.coulet@mines-ales.org>2021-04-28 23:05:53 +0200
commit9fe033ea88c2f705ec18c232873d056e0c229d72 (patch)
tree0647dc8c51610c7336c88c04de2068ea14b21e17 /sem_5/codingbattle/ex1
Initial commit
Diffstat (limited to 'sem_5/codingbattle/ex1')
-rw-r--r--sem_5/codingbattle/ex1/a_loot_sharing.cpp15
-rw-r--r--sem_5/codingbattle/ex1/ex1bin0 -> 9276 bytes
2 files changed, 15 insertions, 0 deletions
diff --git a/sem_5/codingbattle/ex1/a_loot_sharing.cpp b/sem_5/codingbattle/ex1/a_loot_sharing.cpp
new file mode 100644
index 0000000..4003247
--- /dev/null
+++ b/sem_5/codingbattle/ex1/a_loot_sharing.cpp
@@ -0,0 +1,15 @@
+#include <iostream>
+#include <string>
+using namespace std;
+
+int main (int argc, char ** argv){
+ int B;
+ int T;
+ int po;
+ cin >>B>>T>>po;
+ if ( B*2 + T * 3 <= po){
+ cout<<"LOOT!"<<endl;
+ }
+ else cout<<"RHUM!"<<endl;
+ return 0;
+}
diff --git a/sem_5/codingbattle/ex1/ex1 b/sem_5/codingbattle/ex1/ex1
new file mode 100644
index 0000000..aef9718
--- /dev/null
+++ b/sem_5/codingbattle/ex1/ex1
Binary files differ