Hi, I don't understand why I got wrong ans? I match with udebug input given by Morass (666 input case). And all the ans is match with this. Though got wrong ans. Need help :
#include <stdio.h>
int N, dp[1005][35], v[1005], w[1005], hist[105];
int solve(int i, int capital){
int left, right ...
Search found 2 matches
- Thu May 05, 2016 2:29 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10130 - SuperSale
- Replies: 76
- Views: 35905
- Thu Jan 22, 2015 12:17 pm
- Forum: Volume 119 (11900-11999)
- Topic: 11995 - I Can Guess the Data Structure!
- Replies: 60
- Views: 19433
Re: 11995 - I Can Guess the Data Structure!
Hi, I checked with all the Sample TC available here, it gives correct ans. But got WA !! . Help required .
#include <stdio.h>
#define MAX_VAL 1010
int main()
{
int i, type, x, tC, qu[MAX_VAL], st[MAX_VAL], pqu[MAX_VAL], first, last, maxval;
int isQU, isST, isPQU, isIMP;
while(scanf("%d", &tC ...
#include <stdio.h>
#define MAX_VAL 1010
int main()
{
int i, type, x, tC, qu[MAX_VAL], st[MAX_VAL], pqu[MAX_VAL], first, last, maxval;
int isQU, isST, isPQU, isIMP;
while(scanf("%d", &tC ...