Search found 10 matches
- Thu Oct 28, 2010 7:02 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11689 - Soda Surpler
- Replies: 11
- Views: 8310
Re: 11689 Soda Surpler wrong answer
Can you please help, any idea, special case?
- Thu Oct 28, 2010 5:12 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11629 - Ballot evaluation
- Replies: 8
- Views: 6548
11629 - Ballot evaluation
Hello Solver,
I try to solve the problem 11629, but i'm getting WA and I can't discover my fault. Can you help me?
#include <map>
#include <iostream>
#include <string>
#include <iterator>
#include <sstream>
using namespace std;
int main()
{
map<string,float> parties;
map<string,float ...
I try to solve the problem 11629, but i'm getting WA and I can't discover my fault. Can you help me?
#include <map>
#include <iostream>
#include <string>
#include <iterator>
#include <sstream>
using namespace std;
int main()
{
map<string,float> parties;
map<string,float ...
- Wed Oct 20, 2010 1:13 am
- Forum: Volume 116 (11600-11699)
- Topic: 11689 - Soda Surpler
- Replies: 11
- Views: 8310
Re: 11689 Soda Surpler wrong answer
Hello,
I'm getting WA, I tried many case but I can't find the problem?
#include <iostream>
using namespace std;
int main()
{
int nbcas,e,f,c,botle, sum, modulo;
cin>>nbcas;
for(int i=0 ; i<nbcas;i++)
{
cin>>e>>f>>c;
botle = e+f;
sum = 0;
modulo = botle%c;
botle = botle/c;
sum ...
I'm getting WA, I tried many case but I can't find the problem?
#include <iostream>
using namespace std;
int main()
{
int nbcas,e,f,c,botle, sum, modulo;
cin>>nbcas;
for(int i=0 ; i<nbcas;i++)
{
cin>>e>>f>>c;
botle = e+f;
sum = 0;
modulo = botle%c;
botle = botle/c;
sum ...
- Mon Sep 14, 2009 3:42 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10245 - The Closest Pair Problem
- Replies: 92
- Views: 33636
Re: 10245 - The Closest Pair Problem
Can some one tell me what is wrong in this code, i use Brute Force, but it gives me WA?
#include <stdio.h>
#include <math.h>
int main()
{
int i,j,N;
float X[10000],Y[10000],dist,d;
do
{
scanf("%d",&N);
if(N==0) break;
dist = 10001;
for(i=0 ; i<N ; i++)
{
scanf("%f%f",&X[i],&Y[i]);
for ...
#include <stdio.h>
#include <math.h>
int main()
{
int i,j,N;
float X[10000],Y[10000],dist,d;
do
{
scanf("%d",&N);
if(N==0) break;
dist = 10001;
for(i=0 ; i<N ; i++)
{
scanf("%f%f",&X[i],&Y[i]);
for ...
- Wed Jul 22, 2009 11:53 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44584
Re: Why #444 WA?
I tried a lot of test cases! All possibilities i know, but it gives me WA since 2 years! Can some one find the bug?
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
using namespace std;
int main() {
int i, a, size;
string line, inv;
while (getline(cin, line ...
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
using namespace std;
int main() {
int i, a, size;
string line, inv;
while (getline(cin, line ...
- Wed Dec 12, 2007 9:00 pm
- Forum: Volume 8 (800-899)
- Topic: 850 - Crypt Kicker II
- Replies: 77
- Views: 50006
850 - Crypt Kicker II
Could you tell me what's wrong in my code?
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string ss="the quick brown fox jumps over the lazy dog";
char code[200];
bool check(string line)
{
int i,size;
string mot;
for(i='a'; i<='z'; i++) code[i]='0';
size ...
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string ss="the quick brown fox jumps over the lazy dog";
char code[200];
bool check(string line)
{
int i,size;
string mot;
for(i='a'; i<='z'; i++) code[i]='0';
size ...
- Tue Oct 23, 2007 5:58 pm
- Forum: Volume 5 (500-599)
- Topic: 545 - Heads
- Replies: 67
- Views: 54531
- Fri Oct 19, 2007 7:30 pm
- Forum: Volume 5 (500-599)
- Topic: 545 - Heads
- Replies: 67
- Views: 54531
- Thu Oct 11, 2007 2:54 am
- Forum: Volume 103 (10300-10399)
- Topic: 10300 - Ecological Premium
- Replies: 22
- Views: 13473
10300 - WA why?
I think i have solved the 10300 problem, but why do i get the famous Wrong Answer ? there is my C++ code :
#include <iostream>
using namespace std;
int main()
{
long nb_case,nb_farmers,sum,farmsize,nb_animal,friendliness,i,j;
cin>>nb_case;
for(i=0 ; i<nb_case ; i++)
{
sum=0;
cin>>nb ...
#include <iostream>
using namespace std;
int main()
{
long nb_case,nb_farmers,sum,farmsize,nb_animal,friendliness,i,j;
cin>>nb_case;
for(i=0 ; i<nb_case ; i++)
{
sum=0;
cin>>nb ...
- Thu Aug 09, 2007 6:36 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10929 - You can say 11
- Replies: 69
- Views: 37204
Output Limit exceeded
Why do i have Output Limit exceeded?!!!!
[codeIt was accepted[/code]
[codeIt was accepted[/code]