Search found 3 matches

by shi562217697
Wed Jul 09, 2014 4:45 am
Forum: Volume 106 (10600-10699)
Topic: 10603 - Fill
Replies: 19
Views: 8606

Re: 10603 - Fill

Thanks.I have found the wrong place. if (max_liter <= d) { if (max_liter > r_d) { r_d = max_liter; r_cnt = tmp.amt; } } should be if (max_liter <= d) { if (max_liter > r_d) { r_d = max_liter; r_cnt = tmp.amt; } else if ( max_liter == r_d) { r_cnt = tmp.amt; } }
by shi562217697
Mon Jul 07, 2014 3:00 am
Forum: Volume 106 (10600-10699)
Topic: 10603 - Fill
Replies: 19
Views: 8606

Re: 10603 - Fill

Hi, I got WA for this.Why? #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <queue> #include <set> using namespace std; struct state { int water[3]; int amt; }; int cap[3]; int d; int r_d; int r_cnt; int hash[201][201]; void read_input() { scanf("%d%d%d%d",&cap[0]...
by shi562217697
Sat Jul 05, 2014 3:20 am
Forum: Volume 106 (10600-10699)
Topic: 10603 - Fill
Replies: 19
Views: 8606

10603-Fill

Hi, I got WA for this.Why? #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <queue> #include <set> using namespace std; struct state { int water[3]; int amt; bool operator < (const state& s) const { for (int i = 0 ; i < 2 ; ++i) { if (water[i] != s.water[i]) { ret...

Go to advanced search