Demo entry 6776244

dip_99

   

Submitted by ffff on Nov 30, 2018 at 20:48
Language: C++. Code size: 768 Bytes.

int main()  
{  
      //FI;  
      int tc = read();  
      FOR(tcase, tc)  
      {  
            row = read();  
            column = read();  
            ll x = readLL();  
            ll y = readLL();  
            beepers.eb(x, y);  
            tbeeper = read();  
            FOR(i, tbeeper)  
            {  
                  x = readLL();  
                  y = readLL();  
                  beepers.eb(x, y);  
            }  
            tbeeper = sz(beepers);  
            memo(memoize, 0);  
            int mask = 0;  
            mask = setbit(mask, 0);  
            ll minDistance = solve(0, mask);  
            printf("The shortest path has length %lld\n", minDistance);  
            beepers.clear();  
      }  
}  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).