Search found 8 matches

by d3nd0h
Fri Dec 13, 2013 5:38 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 33665

How to handle blank lines on 2 consecutive input in C++?

I tried to solve this problem http://uva.onlinejudge.org/index.php?op ... oblem=1199, I did understand the problem, but since I am a newbie I can't handle the consecutive testcase problem, what should I do?
by d3nd0h
Sat Dec 07, 2013 3:05 pm
Forum: Volume 106 (10600-10699)
Topic: 10616 - Divisible Group Sums
Replies: 39
Views: 18426

Re: 10616 - Divisible Group Sums

Can someone help me what's wrong with my code? #include<iostream> #include<stdio.h> #include<string.h> #include<math.h> #include<string> #include<vector> #include<algorithm> #include<utility> using namespace std; int n,d,m,q,x=0; long long in[250],memo[250][25][15]; long long div(int i,int rem,int s...
by d3nd0h
Tue Nov 26, 2013 5:08 am
Forum: Volume 5 (500-599)
Topic: 507 - Jill Rides Again
Replies: 92
Views: 29059

Re: 507 TLE

Well thanks, I just realized that, I guess I still need more practice for DP, thx:)
by d3nd0h
Sat Nov 23, 2013 3:04 pm
Forum: Volume 5 (500-599)
Topic: 507 - Jill Rides Again
Replies: 92
Views: 29059

Re: 507 TLE

I though that I've used DP, so I am not? :(
by d3nd0h
Thu Nov 21, 2013 5:30 am
Forum: Volume 5 (500-599)
Topic: 507 - Jill Rides Again
Replies: 92
Views: 29059

507 TLE

hi, I am getting TLE within this code for Jill rides again, anyone could help me? #include<iostream> #include<stdio.h> #include<string.h> #include<math.h> #include<vector> #include<string> #include<utility> #include<algorithm> using namespace std; int main(){ int tc,stop,nice[20000],maxi,maxj,max; s...
by d3nd0h
Sat Nov 09, 2013 5:13 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 75630

Re: 10038 - Jolly Jumpers

oh thanks.. I have left the newline character after each output then can u tell me what's wrong is with my code? If I did wrong interpret the problem please tell me thx.. #include<iostream> #include<stdio.h> #include<stdlib.h> #include<vector> #include<algorithm> using namespace std; int main(){ int...
by d3nd0h
Fri Nov 08, 2013 7:43 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 75630

Re: 10038 - Jolly Jumpers

#include<iostream> #include<stdio.h> #include<stdlib.h> #include<vector> using namespace std; int main(){ int n; vector<long> in; bool first=1; while(scanf("%d",&n)!=EOF){ bool jolly=1; for(int i=0;i<n;i++){ int dum; scanf("%d",&dum); in.push_back(dum); } bool cek[n]; for(int i=1;i<n;i++){ int diff...
by d3nd0h
Sun Nov 03, 2013 3:45 am
Forum: Volume 101 (10100-10199)
Topic: 10141 - Request for Proposal
Replies: 44
Views: 15261

Re: 10141 - Request for Proposal

Hello if been trying for some time, but still isn't getting AC, can anyone give me several test case which I would make the stupid mistake? If you can please also check my code, Thx :D #include<iostream> #include<stdio.h> #include<string> using namespace std; int main(){ string dum,out; double d,num...

Go to advanced search