Search found 13 matches

by watershed
Wed Jul 20, 2005 5:29 am
Forum: Volume 108 (10800-10899)
Topic: 10813 - Traditional BINGO
Replies: 28
Views: 9716

10813-WA

#include<stdio.h> int grid[5][5]={0}; // BINGO card bool mark[5][5]; int call[75]; void clear() { int i, j; for(i=0; i<5; ++i) for(j=0; j<5; ++j) mark[i][j] = false; mark[2][2] = true; // free space } void input() { int i, j; for(i=0; i<2; ++i) for(j=0; j<5; ++j) scanf("%d",&grid[i][j]); scanf("%d%...
by watershed
Sun Jul 17, 2005 4:03 pm
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30752

10815 wrong

Who can help me solve this problem, thanks~ #include<iostream> #include<string> #include<set> using namespace std; main() { set<string> words; string buffer="", word=""; while( cin >> buffer ) { int len = buffer.length(); for(int i=0; i<=len; ++i) { if( buffer[i] >= 'A' && buffer[i] <= 'Z' ) word+=t...
by watershed
Mon Jan 24, 2005 4:55 pm
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22104

782 - Runtime Error

I need your help if you got AC. #include<stdio.h> #include<string.h> char map[50][100]; int line,maxlen; // maxlen is the most long length int ch_x,ch_y; // coordinate of asterisk void input() { line = maxlen = 0; while( gets(map[line]) ) { if( !strcmp(map[line],"__________") ) break; int len = strl...
by watershed
Mon Jan 24, 2005 4:55 pm
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22104

782 - Runtime Error

I need your help if you got AC. #include<stdio.h> #include<string.h> char map[50][100]; int line,maxlen; // maxlen is the most long length int ch_x,ch_y; // coordinate of asterisk void input() { line = maxlen = 0; while( gets(map[line]) ) { if( !strcmp(map[line],"__________") ) break; int len = strl...
by watershed
Tue Aug 10, 2004 8:47 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 14012

Re: 574 Sum It Up. WA can you tell me some inputs?

tetuya wrote:Thank you for your reply :D :D

I read this following passage.
and X1,...,Xn will be positive integers less than 100.
and , 999 1 999 is invalid input,isnt it?
maybe you can try in this test data
by watershed
Mon Aug 09, 2004 5:57 pm
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 14012

Re: 574 Sum It Up. WA can you tell me some inputs?

Code: Select all

INPUT:
999 1 999

CORRECT OUTPUT:
NONE

YOUR OUTPUT:
-25
by watershed
Sun Aug 08, 2004 5:28 am
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 4983

I tested those data
but I still got WA
who can help me
thanks....

Code: Select all

...cut...
by watershed
Sat Aug 07, 2004 5:08 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28625

Why on earth are you using a map<char,char> to get the value of each letter? That's insane. Use a switch statement. I think fast for the way , but actually I wrong :cry: Do map<int,int> phonenumbercount; When you have the phone number as an INT (which you don't use any C++, ever, to figure out), do...
by watershed
Fri Aug 06, 2004 4:05 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28625

I use C++ map , but I still got TLE
who can fix my program
I know my code isn't very good
thanks for your help.....

[cpp] CUT ^^"... [/cpp]
by watershed
Fri Aug 06, 2004 2:10 am
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24583

UFP2161 wrote:My program outtputed the first one, but it shouldn't matter since the description states that:
No two computers are at identical locations and each computer will be listed once.
thanks....I understand
but I still got WA
who have more input data
sorry,my program is poor ^^"

[c] cut [/c]
by watershed
Thu Aug 05, 2004 5:08 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24583

Re: AC!

please tell me if input is.. 2 100 100 100 100 answer should ? ********************************************************** Network #1 Cable requirement to connect (100,100) to (100,100) is 16.00 feet. Number of feet of cable required is 16.00. *********************************************************...
by watershed
Thu Aug 05, 2004 9:54 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35096

Re: 706~Help me please

I got AC(P.E) in this problem.
I only change【printf】for【putchar】in C.
You can try it......
by watershed
Thu Aug 05, 2004 9:34 am
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 28694

10099 WRONG

This problem is Floyd algorithm.
Why did I get WA?
Thanks for your help....

[cpp]nothing[/cpp]

Go to advanced search