apl-mhd

one

Jun 22nd, 2019
147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<cstdio>
  2. #include <string>
  3. #include <iostream> //cout, cin
  4. using namespace std;
  5.  
  6.  
  7.  
  8.  
  9. int main() {
  10.  
  11.     string id;
  12.     cin>>id;
  13.  
  14.     if(!(id[0] == '0' && id[1]=='1' && id[2] == '1')){
  15.  
  16.         cout<< "Not Accept 1";
  17.         exit(0);
  18.  
  19.     } else if(!(id[5] == '1' || id[5] == '2' || id[5] == '3')){
  20.  
  21.         cout<< "Not Accept 2";
  22.         exit(0);
  23.  
  24.     }
  25.  
  26.  
  27.     else if(id[6] == '0' && id[7] == '0' && id[8] == '0'){
  28.  
  29.         cout<< "Not Accept 3";
  30.         exit(0);
  31.     }
  32.     else{
  33.  
  34.         cout<< "Accept";
  35.  
  36.     }
  37.  
  38.  
  39.  
  40.     return 0;
  41. }
RAW Paste Data