Search found 4 matches

by emo
Sat Sep 14, 2013 1:09 am
Forum: Volume 106 (10600-10699)
Topic: 10650 - Determinate Prime
Replies: 67
Views: 25635

Re: 10650 - Determinate Prime

Input: 23335 8226 0 0 AC output: 8707 8713 8719 8741 8747 8753 9391 9397 9403 9467 9473 9479 9859 9871 9883 10247 10253 10259 10601 10607 10613 10651 10657 10663 10847 10853 10859 11287 11299 11311 11399 11411 11423 11491 11497 11503 11719 11731 11743 11801 11807 11813 11897 11903 11909 11927 11933...
by emo
Fri Sep 13, 2013 5:50 am
Forum: Volume 106 (10600-10699)
Topic: 10650 - Determinate Prime
Replies: 67
Views: 25635

Re: 10650 - Determinate Prime(Why this WA)

:evil: why WA :x #include<iostream> #include<map> #include<vector> #include<set> using namespace std; bool prime[32010]; int primes[32000]; void sieve() { for(int i=0;i<32000;i++) prime[i]=true; prime[0]=false;prime[1]=false; for(int i=2;i*i<=32000;i++) if(prime[i]) { for(int j=i*i;j<=32000;j+=i) pr...
by emo
Sun Sep 02, 2012 11:23 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 23601

Re: super sale problem is WA

please any one reply me because i get tired of this problem :(
by emo
Sun Sep 02, 2012 11:04 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 23601

super sale problem is WA

:( hello please i need help this problem is WA but i don't know why and i tried the input the output was correct but in uva is WA this is my code: #include<iostream> #include<string> using namespace std; int weights[1005],num_person; int prices[1005],person_max;int takeItem, skipItem;; int waight,pr...

Go to advanced search