my program outputs 2345515!!!!
thanks u very much.
Search found 6 matches
- Sun Sep 26, 2004 1:58 am
- Forum: Volume 107 (10700-10799)
- Topic: 10718 - Bit Mask
- Replies: 29
- Views: 14461
- Sat Sep 25, 2004 12:46 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10718 - Bit Mask
- Replies: 29
- Views: 14461
Here are my output.
9
4
17
435
905
625
409
712
14721
23460
29462
19554
17216
382924
237589
257219
234343
499600
14223127
16692359
13133233
19429997
10902496
957429345
1305069817
1880088222
704659827
1542920241
- Sat Sep 25, 2004 5:58 am
- Forum: Volume 107 (10700-10799)
- Topic: 10718 - Bit Mask
- Replies: 29
- Views: 14461
to liulike
can u tell me why i got wa?
thanks a lot.
see my program in message i have post.
thanks a lot.
see my program in message i have post.
- Fri Sep 24, 2004 4:00 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10718 - Bit Mask
- Replies: 29
- Views: 14461
10718
I used brute froce to check my program, my code can pass all test data I made. Can anyone told me why I got WA?
Thanks a lot!
[cpp]#include <stdio.h>
#include <iostream.h>
unsigned int n,lo,hi;
int main()
{
unsigned int alr;
int i;
while(cin>>n>>lo>>hi)
{
alr=0;
for(i=31;i>=0;i--)
if((n&(1 ...
Thanks a lot!
[cpp]#include <stdio.h>
#include <iostream.h>
unsigned int n,lo,hi;
int main()
{
unsigned int alr;
int i;
while(cin>>n>>lo>>hi)
{
alr=0;
for(i=31;i>=0;i--)
if((n&(1 ...
- Wed Sep 22, 2004 5:48 pm
- Forum: Volume 8 (800-899)
- Topic: 824 - Coast Tracker
- Replies: 8
- Views: 7211
824 - Coast Tracker
An easy problem, but what's wrong with my program?
can anyone tell me? thanks a lot.
[cpp]#include <stdio.h>
int dire[8][2]={{1,0},{1,-1},{-1,0},{-1,-1},{0,-1},{-1,1},{0,1},{1,1}};
int start[8]={6,7,0,1,2,3,4,5};
struct Tdata{
int x,y,type;
}data[8];
int x,y,dir;
bool island(int x,int y)
{
int ...
can anyone tell me? thanks a lot.
[cpp]#include <stdio.h>
int dire[8][2]={{1,0},{1,-1},{-1,0},{-1,-1},{0,-1},{-1,1},{0,1},{1,1}};
int start[8]={6,7,0,1,2,3,4,5};
struct Tdata{
int x,y,type;
}data[8];
int x,y,dir;
bool island(int x,int y)
{
int ...
- Tue Sep 21, 2004 5:57 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10600 - ACM Contest and Blackout
- Replies: 34
- Views: 20185
10600, i have got wa for n times!
can anyone tell me what's wrong?
[cpp]#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Tedge{
int u,v;
}e[20010],mt[110];
int n,m,tot,ans1,ans2,totcase;
int g[110][110],opt[110][110];
bool mark[110][110];
int cmp(const void *a,const void *b){
Tedge *e1=(Tedge*)a,*e2=(Tedge*)b ...
[cpp]#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Tedge{
int u,v;
}e[20010],mt[110];
int n,m,tot,ans1,ans2,totcase;
int g[110][110],opt[110][110];
bool mark[110][110];
int cmp(const void *a,const void *b){
Tedge *e1=(Tedge*)a,*e2=(Tedge*)b ...