From 9fe033ea88c2f705ec18c232873d056e0c229d72 Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:05:53 +0200 Subject: Initial commit --- sem_5/codingbattle/ex1/a_loot_sharing.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sem_5/codingbattle/ex1/a_loot_sharing.cpp (limited to 'sem_5/codingbattle/ex1/a_loot_sharing.cpp') 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 +#include +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!"<