it just lisk you have a array a[5]={1,2,3,4,5}
then you can use a function(like java's function) to display it to a graphic
5 | *
4 | *
3 | *
2 | *
1 | *
0 |_____________________________________
a[0] a[1] a[2] a[3] a[4] a[5]
Search found 9 matches
- Mon Sep 29, 2003 12:42 pm
- Forum: Algorithms
- Topic: help!~~~
- Replies: 1
- Views: 1683
- Mon Sep 29, 2003 12:40 pm
- Forum: C++
- Topic: is there anyone can help me to use the "display" f
- Replies: 0
- Views: 1463
is there anyone can help me to use the "display" f
it just lisk you have a array a[5]={1,2,3,4,5}
then you can use a function(like java's function) to display it to a graphic
5 | *
4 | *
3 | *
2 | *
1 | *
0 |_____________________________________
a[0] a[1] a[2] a[3] a[4] a[5]
then you can use a function(like java's function) to display it to a graphic
5 | *
4 | *
3 | *
2 | *
1 | *
0 |_____________________________________
a[0] a[1] a[2] a[3] a[4] a[5]
- Thu Sep 12, 2002 8:21 am
- Forum: Volume 102 (10200-10299)
- Topic: 10282 - Babelfish
- Replies: 48
- Views: 27432
10282 time limite exceeded~why?
[cpp]
/* @JUDGE_ID: 6983KT 10282 C++ */
#include<stdio.h>
#include<string.h>
#define max 100000
typedef struct dict
{
char in[20],dic[20];
}dict;
dict arr[max];
long count=0;
main()
{
char in1[20],in2[20];
int i,j,k,flag;
while(gets(in1))
{
if(!strlen(in1))break;
j=0;
for(i=0;i<strlen(in1);i ...
/* @JUDGE_ID: 6983KT 10282 C++ */
#include<stdio.h>
#include<string.h>
#define max 100000
typedef struct dict
{
char in[20],dic[20];
}dict;
dict arr[max];
long count=0;
main()
{
char in1[20],in2[20];
int i,j,k,flag;
while(gets(in1))
{
if(!strlen(in1))break;
j=0;
for(i=0;i<strlen(in1);i ...
- Tue Aug 06, 2002 8:03 am
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 51719
108 - Maximum Sum
this is my code!~!
and the judge say limit!!!
is there anybody can help me ???
[cpp]#include<stdio.h>
int in,arr[200][200]={0},max=0,count;
int cou(int i,int j,int x,int y)
{
int a,b;
count=0;
for(a=i;a<=x;a++)
for(b=j;b<=y;b++)
count+=arr[a] ;
if(count>max)max=count;
}
void search()
{
int i ...
and the judge say limit!!!
is there anybody can help me ???
[cpp]#include<stdio.h>
int in,arr[200][200]={0},max=0,count;
int cou(int i,int j,int x,int y)
{
int a,b;
count=0;
for(a=i;a<=x;a++)
for(b=j;b<=y;b++)
count+=arr[a] ;
if(count>max)max=count;
}
void search()
{
int i ...
- Wed Jul 24, 2002 2:39 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10327 - Flip Sort
- Replies: 81
- Views: 35410
OH!!!!I got it!!
OH!!!
I got it !!!!!
thinks a lot!!~!~
I know where am I wrong!!
thinks your remide!!!
I got it !!!!!
thinks a lot!!~!~
I know where am I wrong!!
thinks your remide!!!
- Wed Jul 24, 2002 2:38 pm
- Forum: Volume 5 (500-599)
- Topic: 579 - Clock Hands
- Replies: 44
- Views: 22598
OH!!!I GOt IT!!
OH!!!
I got it !!!!!
thinks a lot!!~!~
I know where am I wrong!!
thinks your remide!!!
I got it !!!!!
thinks a lot!!~!~
I know where am I wrong!!
thinks your remide!!!
- Wed Jul 24, 2002 6:30 am
- Forum: Volume 5 (500-599)
- Topic: 579 - Clock Hands
- Replies: 44
- Views: 22598
579 - Clock Hands
this is my code !!!
is there anybody can tell me where am i wrong!!!
[cpp]#include<stdio.h>
main()
{
int h,m,hn,mn;
float ans;
while(scanf(" %d:%d",&h,&m)==2)
{
if(!h&&!m)break;
ans=((h*60)*0.5)+(m*0.5)-(m*6);
if(ans>180)ans=360.000-ans;
else if(ans<0)ans*=-1;
printf("%.3f\n",ans ...
is there anybody can tell me where am i wrong!!!
[cpp]#include<stdio.h>
main()
{
int h,m,hn,mn;
float ans;
while(scanf(" %d:%d",&h,&m)==2)
{
if(!h&&!m)break;
ans=((h*60)*0.5)+(m*0.5)-(m*6);
if(ans>180)ans=360.000-ans;
else if(ans<0)ans*=-1;
printf("%.3f\n",ans ...
- Mon Jul 22, 2002 4:06 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10327 - Flip Sort
- Replies: 81
- Views: 35410
i fix my code... but ....
i fix my code but it still WA!!
can you say more clear???
i find the smallest number and change
Is there any thing i didn't consider???
[cpp]
#include<stdio.h>
int in[5000],input,time=0,ins,min=0;
main()
{
int i,j;
while(scanf(" %d",&input)==1)
{
time=0;
for(i=0;i<input;i++)
scanf(" %d ...
can you say more clear???
i find the smallest number and change
Is there any thing i didn't consider???
[cpp]
#include<stdio.h>
int in[5000],input,time=0,ins,min=0;
main()
{
int i,j;
while(scanf(" %d",&input)==1)
{
time=0;
for(i=0;i<input;i++)
scanf(" %d ...
- Sun Jul 21, 2002 1:22 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10327 - Flip Sort
- Replies: 81
- Views: 35410
10327 - Flip Sort
i send my programe tothe judge !!but it got WA and I don't know why!!
is there anyone can help me to find the bug ???
[cpp]
#include<stdio.h>
int in[5000],input,time=0,ins;
main()
{
while(scanf(" %d",&input)==1)
{
time=0;
for(int i=0;i<input;i++)
scanf(" %d",&in );
for(int i=0;i<input;i ...
is there anyone can help me to find the bug ???
[cpp]
#include<stdio.h>
int in[5000],input,time=0,ins;
main()
{
while(scanf(" %d",&input)==1)
{
time=0;
for(int i=0;i<input;i++)
scanf(" %d",&in );
for(int i=0;i<input;i ...