Search found 5 matches

by saniatrasel
Fri Jan 08, 2016 8:43 am
Forum: Volume 112 (11200-11299)
Topic: 11220 - Decoding the message.
Replies: 54
Views: 20889

Re: 11220 - Decoding the message.

I keep getting WA and I could not find anything wrong with my code! #include<stdio.h> #include<string.h> #define LINE 102 #define SIZE 100 int Ans; char DecodeMessage[100001]; char Message[LINE][SIZE]; int k = 0; int testCase; int stringLength(char str[]) { int len; for (len = 0; str[len]; len++); r...
by saniatrasel
Fri Jan 01, 2016 2:49 pm
Forum: Volume 6 (600-699)
Topic: 624 - CD
Replies: 77
Views: 33735

Re: 624 - CD

Hello, I keep getting WA :( This is my code (I couldn't find any special input): Any help would be greatly appreciated. #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #define TRACK 25 #define INT_MAX 2147483647 #define SIZE 1000000 int Ans; int Duration, TrackNo; int SongDurati...
by saniatrasel
Wed May 20, 2015 8:24 am
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 21628

Re: 469 - Wetlands of Florida

I got RTE each time I execute the below code...Though all input from Udeg resulted corrected output in my machine. Is there any one who can help me to find the problem: and my submission id is: 15509188 #include <stdio.h> #include<ctype.h> #include<string.h> char st[101][101] = {'\0'}; char stCP[101...
by saniatrasel
Thu Apr 30, 2015 1:45 pm
Forum: Volume 4 (400-499)
Topic: 409 - Excuses, Excuses!
Replies: 63
Views: 9229

Re: 409 - Excuses, Excuses!

I got runtime error. Though its successfully return correct result of all sample input from UVA debug. Can you anyone help me where did I make mistake exactly: #include <stdio.h> #include<string.h> #include <stdlib.h> #include <ctype.h> int main() { int tc = 1; int K,E; int testCase = 1; while((scan...
by saniatrasel
Tue Apr 07, 2015 11:17 am
Forum: Volume 114 (11400-11499)
Topic: 11466 - Largest Prime Divisor
Replies: 29
Views: 15942

Re: 11466 - Largest Prime Divisor

I get WA of the below code... Though all sample inputs are successfully generate desired output. But still I get WA from UVa. Here is the below code: #include<stdio.h> #include<math.h> int main() { long long num; int count = 0; while((scanf("%lld",&num))&&(num!=0)) { long long int i; count = 0; if(n...

Go to advanced search