SRM 513 div2

Source: Internet
Author: User

250pt, a big question, just simulate it according to the meaning of the question.

 
# Include <iostream> # include <cstdio> # include <string. h >#include <vector >#include <cmath> # include <algorithm> using namespace STD; Class trainingcamp {public: vector <string> determinesolvers (vector <string> attendance, vector <string> problemtopics) ;}; vector <string> trainingcamp: determinesolvers (vector <string> A, vector <string> P) {int n =. size (); int M = A [0]. size (); int K = P. size (); vector <string> B; B. clear (); string ant; ant. clear (); int I = 0, j = 0, T = 0; for (I = 0; I <n; I ++) {ant. clear (); For (j = 0; j <K; j ++) {for (t = 0; t <m; t ++) {If (P [J] [T] = '-' | (P [J] [T] = 'X' & A [I] [T] = = 'X ')) continue; If (P [J] [T] = 'X' & A [I] [T] = '-') break;} If (T <m) ant. push_back ('-'); else ant. push_back ('x');} B. push_back (ANT);} return B ;}

40000 PT, brute force, complexity O (* 50 ).

In the system test, a condition for determining the left vertex is missing.

While (L <= R-l [I] & L> B [pur])
PUR = pur + 1;

=!

#include 
  
   #include 
   
    #include 
    
     #include 
     
      #include 
      
        # include 
       
         using namespace STD; Class yetanotherincrediblemachine {public: int countways (vector 
        
          platformmount, vector 
         
           platformlength, vector 
          
            bils) ;}; int yetanotherincrediblemachine: countways (vector 
           
             M, vector 
            
              L, vector 
             
               B) {int lenm = m. size (); B. push_back (1000000); long ant = 1; long mod = 1000000009; sort (B. begin (), B. end (); int pur = 0; For (INT I = 0; I 
              
                B [pur]) PUR = pur + 1; for (Int J = L; j <= R-l [I]; j ++) {If (j = B [pur]) PUR = pur + 1; else if (J + L [I] 
               
              
             
            
           
          
         
        
       
      
     
    
   
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.