diff options
Diffstat (limited to 'sem_5/codingbattle/ex1')
| -rw-r--r-- | sem_5/codingbattle/ex1/a_loot_sharing.cpp | 15 | ||||
| -rw-r--r-- | sem_5/codingbattle/ex1/ex1 | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..aef9718 --- /dev/null +++ b/sem_5/codingbattle/ex1/ex1 |
