diff options
Diffstat (limited to 'sem_5/codingbattle/ex1/a_loot_sharing.cpp')
| -rw-r--r-- | sem_5/codingbattle/ex1/a_loot_sharing.cpp | 15 |
1 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;
+}
|
