Search found 9 matches

by kenneth_cwc
Sun Aug 28, 2005 2:50 pm
Forum: Volume 4 (400-499)
Topic: 416 - LED Test
Replies: 34
Views: 15108

416 WA pls help

Anyone can help me? I tried to debug for long time :cry:


#include<iostream>
using namespace std;

void check_and_store(char str[], int pos, int possible_no[]);

void main()
{
int possible_no[10];
int n;
char tmp[8];
int i, j;
bool match;

cin>>n;
cin.getline(tmp, 8);
while(n)
{
if(n==1 ...
by kenneth_cwc
Sat Aug 27, 2005 5:15 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65142

706 WA >.<

I got WA can't i can't solve it, anyone can help? Thanks~

#include<iostream>

#include <iomanip>

#include <string>

using namespace std;



int main()

{

int s;

string str_n;

int ptr_n;

cin>>s>>str_n;



while(s)

{

ptr_n=0;



int i;

for(i=0;i<2*s+3;i++)

{

while(str_n[ptr_n ...
by kenneth_cwc
Tue Apr 13, 2004 10:01 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 67745

o i found the error....
thanks for reading~
by kenneth_cwc
Tue Apr 13, 2004 9:35 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 67745

in 10013
Each of the two given integers is not less than 1
by kenneth_cwc
Wed Apr 07, 2004 9:56 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45444

^.^

Thanks Dreamer's kindly help~
:D :lol:
by kenneth_cwc
Wed Apr 07, 2004 9:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 67745

10013 WA

[cpp]
#include<iostream>
using namespace std;
struct number
{
int digit;
number *prev;
number *next;
};

void main()
{
int n;
int m;
number* ans;
number* cur;
int t1, t2;
int i;
bool zero;

ans=new number;
ans->prev=NULL;
cur=ans;
for(m=0;m<1000001;m++)
{
cur->next=new number;
cur ...
by kenneth_cwc
Mon Oct 27, 2003 7:56 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45444

it still ok :-?
by kenneth_cwc
Fri Oct 24, 2003 3:35 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45444

000909
1. 9 shata 9
010232
2. 10 hajar 2 shata 32

are they right?
if so, i don't know y it is wrong :cry:
thx for your reply
by kenneth_cwc
Sat Oct 18, 2003 2:23 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45444

10101 WA


#include<iostream>
using namespace std;

void main()
{
char number[255];
int number_end;
int count=0;
bool zero;
bool need_space;
bool kuti;

while(true)
{
need_space=0;
kuti=0;

for(number_end=0;number_end<255;number_end++)
{
number[number_end]=0;
}

count++;

if(cin>>number ...

Go to advanced search