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 +++++++++++++++ sem_5/codingbattle/ex1/ex1 | Bin 0 -> 9276 bytes 2 files changed, 15 insertions(+) create mode 100644 sem_5/codingbattle/ex1/a_loot_sharing.cpp create mode 100644 sem_5/codingbattle/ex1/ex1 (limited to 'sem_5/codingbattle/ex1') 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!"<