Search found 27 matches

by Yusif
Wed Jan 29, 2014 9:46 pm
Forum: Volume 123 (12300-12399)
Topic: 12394 - Peer Review
Replies: 6
Views: 1290

WA

Do I get it wrong?
I assume that
1) if paper i is reviewed less than twice the violation is with paper i, (correct is " if paper i is reviewed more or less than K times the violation is with paper i,")
2) if author j reviews paper i more than once the violation is with paper i,
3) if author j ...
by Yusif
Tue Nov 05, 2013 10:36 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41232

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

Well then, it explains how.
Thanks again!
by Yusif
Sun Nov 03, 2013 1:01 am
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41232

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

Let's make something clear,
I assume that the time is the maximum of every single testcase's running time.
Am I wrong?! Is it their sum? :o
by Yusif
Fri Nov 01, 2013 12:08 am
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41232

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

I added this to the beginning of the original findGold
y= lower_bound(a.begin(), a.end(), e)-a.begin()+1;
if (y>=a.size())
y=a.size()-1;
and it got the best time among my submissions.

I guess the worst input for the original code was 6, because the answer is 3 + 3 and "y" was to iterate through ...
by Yusif
Thu Oct 31, 2013 1:22 am
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41232

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

Thanks, it worked.
But I cant see how it is faster; it is like O(n lgn) while mine was O(n)! :o
by Yusif
Tue Oct 29, 2013 10:11 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41232

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

I'm getting TL but I cant get why :(

Code: Select all

AC
by Yusif
Tue Sep 10, 2013 8:38 am
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 43640

Re: 10032 - Tug of War

Thanks! I'll try.
by Yusif
Tue Sep 10, 2013 8:36 am
Forum: Volume 116 (11600-11699)
Topic: 11683 - Laser Sculpture
Replies: 6
Views: 7342

11683 - Laser Sculpture

I got WA, please help!

Code: Select all

AC, thanks to Brian.
by Yusif
Fri Sep 06, 2013 11:43 pm
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 43640

Re: 10032 - Tug of War

Thank you Brian; the first test case was enough to see my algorithm is buggy.
I did some modifications and then I nearly disproved its correctness. :-?

Do you think I'd see light if I try more on greedy or maybe I better move on to something else?
by Yusif
Sun Sep 01, 2013 1:45 am
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 43640

Re: 10032 - Tug of War

I'm getting WA though I think everything's ok! :-?


#include <cstdio>
#include <iostream>
#include <bitset>
#include <functional>
#include <algorithm>

using namespace std;

int main(){
int n, a[110], sum, gsum, tc, b, d;
bitset<110> is;
bool done;

cin>>tc;
while (tc--){
cin>>n;
sum=0 ...
by Yusif
Sun Sep 01, 2013 12:00 am
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 23509

Re: 763 - Fibinary Numbers

Got it; thank you! :)
by Yusif
Fri Aug 30, 2013 1:25 am
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 23509

Re: 763 - Fibinary Numbers

I changed that to 198 and then to 140 yet the same result! :-?
by Yusif
Thu Aug 29, 2013 3:36 am
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 23509

Re: 763 - Fibinary Numbers

I'm getting RE :oops:
Can anybody help?

Code: Select all

ac
by Yusif
Fri Aug 16, 2013 12:42 pm
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 55360

Re: 10044 - Erdos Numbers

I modified it according to that and even did a little more overkill, yet wa!
Maybe I better move on. :roll:
by Yusif
Sat Aug 10, 2013 6:32 am
Forum: Volume 8 (800-899)
Topic: 843 - Crypt Kicker
Replies: 51
Views: 35644

Re: 843 - Crypt Kicker

According to a friend I'd been assuming that EOF is always preceded by a newline, thanks for mentioning that!
However it is still TL after fixing that.

Go to advanced search