Search found 5 matches

by kakashi
Sun Aug 28, 2005 3:05 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 59922

thanks......
I try to change input taking methods......
using getline and it does work... :D
by kakashi
Mon Aug 22, 2005 9:45 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 101968

I change the code...
but i still get WA
if(a[0]=='0'&&b[0]=='0'&&strlen(a)<2&&strlen(b)<2)
break;

:cry:
by kakashi
Mon Aug 22, 2005 5:42 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 101968

10035 Primary Arithmetic WA

i don't understand why my program got WA.
plz help me :cry:
I can`t find which is wrong

#include<iostream>
#include<cstring>

using namespace std;
int main(){
char a[11],b[11];
int lena,lenb;
int i,j;
for(cin >> a >> b ; cin ; cin >> a >> b){
if(a[0]=='0'&&b[0]=='0')
break;

int count=0 ...
by kakashi
Sun Aug 14, 2005 3:43 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 59922

10424 Love Calculator


#include<iostream>
#include<cstdio>
#include<string>
#include<cctype>

using namespace std;
int main(){
string name1,name2;
int length1,length2;
int i;
int num1,num2;
double ans1,ans2;

for(cin >> name1 >> name2;cin;cin >> name1 >> name2){
num1=0;
num2=0;
length1=name1.length ...
by kakashi
Sat May 28, 2005 11:47 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38947

Re: 483 WA i have searched all samples,and all are right.

I have searched all sample inputs on board, and all are right...

Why judge still give me a WA instead of a AC :(

here is my code:
#include <iostream>
#include <string>
using namespace std;

string word;

char ch;

void reverseOut(string &s)
{
long i=s.length()-1;
while(i>=0)
{
cout<<s[i ...

Go to advanced search