Please Help me providing Sample I/O. I'm getting WA but can't figure it out
Thanks.
Search found 6 matches
- Thu Sep 27, 2012 6:17 pm
- Forum: Volume 2 (200-299)
- Topic: 294 - Divisors
- Replies: 91
- Views: 39769
- Tue Aug 21, 2012 11:17 pm
- Forum: Volume 4 (400-499)
- Topic: 499 - What's The Frequency, Kenneth?
- Replies: 93
- Views: 20815
Re: 499 - What's The Frequency, Kenneth?
Thanks a lot @brianfry713 . I got AC 

- Thu Aug 16, 2012 1:14 am
- Forum: Volume 4 (400-499)
- Topic: 499 - What's The Frequency, Kenneth?
- Replies: 93
- Views: 20815
Re: 499 - What's The Frequency, Kenneth?
My Complete code is given here.My I/O matches with the I/O given by @ PromeNabid previously in this topic.
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500],ch;
int arr[52];
int index,k,j;
/*
freopen("input.txt","r",stdin);
freopen ...
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500],ch;
int arr[52];
int index,k,j;
/*
freopen("input.txt","r",stdin);
freopen ...
- Wed Aug 15, 2012 10:41 am
- Forum: Volume 4 (400-499)
- Topic: 499 - What's The Frequency, Kenneth?
- Replies: 93
- Views: 20815
Re: 499 - What's The Frequency, Kenneth?
I changed my while loop like that
Now it matches the sample I/O But again WA
what's the problem now ?
Code: Select all
while(gets(str)!=NULL)
what's the problem now ?
- Tue Aug 14, 2012 9:00 pm
- Forum: Volume 4 (400-499)
- Topic: 499 - What's The Frequency, Kenneth?
- Replies: 93
- Views: 20815
ACM-499 What's The Frequency, Kenneth?
My output matches with UVA toolkit but I got WA . But can't find out what's the problem is.
Help please. #include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500],ch;
int arr[52];
int index,k,j;
//freopen("input.txt","r",stdin);
//freopen("output ...
Help please. #include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500],ch;
int arr[52];
int index,k,j;
//freopen("input.txt","r",stdin);
//freopen("output ...
- Tue Aug 14, 2012 6:15 pm
- Forum: Volume 4 (400-499)
- Topic: 499 - What's The Frequency, Kenneth?
- Replies: 93
- Views: 20815
Re: 499 - What's The Frequency, Kenneth?
But what's the problem with my code.I got WA
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500];
int arr[52];
int index,k,j;
// freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
while(gets(str))
{
int length = strlen ...
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[500];
int arr[52];
int index,k,j;
// freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
while(gets(str))
{
int length = strlen ...