diff --git a/Codeforces/Gym/100819M.cpp b/Codeforces/Gym/100819M.cpp new file mode 100644 index 0000000..40777f5 --- /dev/null +++ b/Codeforces/Gym/100819M.cpp @@ -0,0 +1,72 @@ +#include +using namespace std; +string op; +int parm; +int n; + +int operation_type[16]; +int operation_parm[16]; + +bool takeoperation(int a) +{ + for(int i=0;i>n; + for(int i=0;i>op>>operation_parm[i]; + operation_type[i]=0; + switch(op.at(0)) + { + case 'D': + operation_type[i]++; + case 'M': + operation_type[i]++; + case 'S': + operation_type[i]++; + case 'A': + break; + } + } + int cnt=0; + for(int i=1;i<=100;i++) + { + if(takeoperation(i)) + { + cnt++; + } + } + cout<<100-cnt<