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 ...
Search found 9 matches
- Sun Aug 28, 2005 2:50 pm
- Forum: Volume 4 (400-499)
- Topic: 416 - LED Test
- Replies: 34
- Views: 15108
- 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 ...
#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 ...
- Tue Apr 13, 2004 10:01 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67745
- Tue Apr 13, 2004 9:35 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67745
- 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~



- 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 ...
#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 ...
- Mon Oct 27, 2003 7:56 am
- Forum: Volume 101 (10100-10199)
- Topic: 10101 - Bangla Numbers
- Replies: 122
- Views: 45444
- Fri Oct 24, 2003 3:35 am
- Forum: Volume 101 (10100-10199)
- Topic: 10101 - Bangla Numbers
- Replies: 122
- Views: 45444
- 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 ...