Search found 2 matches

by Leo66
Thu May 19, 2011 6:22 pm
Forum: Volume 100 (10000-10099)
Topic: 10037 - Bridge
Replies: 84
Views: 26538

Re: 10037 - Bridge

Why W.A? My program is correct :(

All test data is correct

Code: Select all

AC
by Leo66
Sun May 01, 2011 5:13 pm
Forum: Volume 101 (10100-10199)
Topic: 10154 - Weights and Measures
Replies: 60
Views: 41948

Re: 10154 - Weights and Measures

Hi, Why W.A? #include<iostream> #include<algorithm> #include<vector> using namespace std; struct zolwie { int w, m; zolwie(): w(0), m(0) {} zolwie(int _w, int _s): w(_w), m(_s-_w) {} bool operator<(zolwie const & ref) const { return(m>ref.m); } }; int main() { vector<zolwie> tab; long liczba1, l...

Go to advanced search