Search found 18 matches
- Sat May 21, 2016 1:34 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 58460
Re: 10930 - A-Sequence
I've tried every possible input from here and udebug. Still getting WA. No idea what's wrong. Help me... Here's the code.... #include<bits/stdc++.h> #define sc(x) scanf("%d",&x) #define sc2(x,y) scanf("%d%d",&x,&y) #define scs(x) scanf("%s",x) #define pr(x) ...
- Wed Mar 02, 2016 4:20 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10511 - Councilling
- Replies: 26
- Views: 14784
Re: 10511 - Councilling
I tried max flow algorithm, but got WA. My algo: source->every club(capacity=1); clubs->their people(capacity=1); people->their party(capacity=1); party->sink(capacity=(Club numbers-1)/2); if(flow!=club_number) print "Impossible" else, print solution. I think the algorithm is correct and t...
- Sat Nov 14, 2015 1:49 pm
- Forum: Volume 3 (300-399)
- Topic: 318 - Domino Effect
- Replies: 12
- Views: 10450
Re: 318 - Domino Effect
My code is getting correct ans for all inputs in this forum but still WA. Please anybody help... #include<bits/stdc++.h> #define sc(x) scanf("%d",&x) #define sc2(x,y) scanf("%d%d",&x,&y) #define sc3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define sc4(w,x...
- Thu Apr 30, 2015 11:48 pm
- Forum: General
- Topic: using macros affects runtime?
- Replies: 1
- Views: 5631
using macros affects runtime?
I've been using a lot of macros to code faster in uva online judge. I always try to solve problems with more efficient algorithms. but I always get more runtimes then my friends whose algorithms are not that much efficient. So it led me thinking if my using macro's causing extra runtime. Please help...
- Sat Feb 21, 2015 4:44 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 56757
Re: 10194 - Football (aka Soccer)
Thanks brianfry I got ac...
- Mon Feb 16, 2015 3:40 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 56757
Re: 10194 - Football (aka Soccer)
I am getting correct output but got WA. Please help...
Code: Select all
Got AC
- Sat Feb 14, 2015 12:21 am
- Forum: Volume 7 (700-799)
- Topic: 790 - Head Judge Headache
- Replies: 49
- Views: 20520
Re: 790 - Head Judge Headache
I got AC. But can you explain why the last 5 teams in the output should be in rank 5 instead of rank 4? It doesn't make sense...
- Thu Feb 12, 2015 7:04 am
- Forum: Volume 7 (700-799)
- Topic: 790 - Head Judge Headache
- Replies: 49
- Views: 20520
Re: 790 - Head Judge Headache
sorry for double posting... ![:(](./images/smilies/icon_frown.gif)
![:(](./images/smilies/icon_frown.gif)
- Thu Feb 12, 2015 7:03 am
- Forum: Volume 7 (700-799)
- Topic: 790 - Head Judge Headache
- Replies: 49
- Views: 20520
Re: 790 - Head Judge Headache
My code is giving correct output for every input I try. But still it's giving WA...
Code: Select all
Got Ac
- Tue Jan 20, 2015 3:16 am
- Forum: C++
- Topic: how do they solve in 0ms?
- Replies: 1
- Views: 1403
how do they solve in 0ms?
I'm not an experienced programmer myself. So it maybe a stupid question. But often wonder that how the highest rank holders in most problems in uva solve them in 0 ms. Even when I submitted a code by just writing: int main() {return 0;} I took 13ms. So how do they solve these problems so efficiently...
- Sat Jan 10, 2015 7:46 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11222 - Only I did it!
- Replies: 14
- Views: 8877
Re: 11222 - Only I did it!
Thanks I got AC... ![:D](./images/smilies/icon_biggrin.gif)
![:D](./images/smilies/icon_biggrin.gif)
- Fri Jan 09, 2015 10:58 pm
- Forum: Volume 122 (12200-12299)
- Topic: 12291 - Polyomino Composer
- Replies: 9
- Views: 4232
Re: 12291 - Polyomino Composer
My algo: 1. first I shifted the small grid as left and as upper as possible(I didn't think I should do so for the larger grid as well) 2. then I traversed the large grid for any occurrence of the small grid. if found, filled that section of the larger grid with '.'. if none found then printed 0, 3. ...
- Fri Jan 09, 2015 9:57 am
- Forum: Volume 122 (12200-12299)
- Topic: 12291 - Polyomino Composer
- Replies: 9
- Views: 4232
Re: 12291 - Polyomino Composer
Also I don't know why I'm getting wa. please help... #include<iostream> #include<sstream> #include<string> #include<algorithm> #include<iomanip> #include<array> #include<vector> #include<stack> #include<queue> #include<deque> #include<list> #include<forward_list> #include<map> #include<unordered_map...
- Fri Jan 09, 2015 9:32 am
- Forum: Volume 122 (12200-12299)
- Topic: 12291 - Polyomino Composer
- Replies: 9
- Views: 4232
Re: 12291 - Polyomino Composer
Can you explain please...?brianfry713 wrote:It looks like the judge's input has Polyominos that don't have the correct number of characters. In my AC code I pad the right size of the Polyomino with '.' if the line is too short.
- Wed Jan 07, 2015 3:44 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11222 - Only I did it!
- Replies: 14
- Views: 8877
Re: 11222 - Only I did it!
Hello! I've tried all the inputs in my code. Don't know why I'm getting WA. Please help...
![:(](./images/smilies/icon_frown.gif)
Code: Select all
Got AC