Search found 155 matches

by tan_Yui
Fri Dec 09, 2005 9:59 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25624

Thank you, misof. :)
I'll try to check my algorithm again.

Best regards.
by tan_Yui
Fri Dec 09, 2005 9:32 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25624

i.e. there may be two numbers which are X and XXXXXy.(X has several digits, y is one digit). So you should compare y and the first digit of X. Although I use this method to get AC, after reading David's algorithm, I have to confess my method is really dull. I got AC with sorting algorithm same as y...
by tan_Yui
Fri Dec 09, 2005 7:27 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25624

I am getting WA again and again ! I cant figure out where is actually my mistake. Would you plz give me some tricky input and output, so that I can find my fault ? Although I read your post in another thread, I couldn't find what is your algorithm. So, I give you critical input for your program. An...
by tan_Yui
Fri Dec 09, 2005 6:09 am
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

Now tell me, if a sprinkler has period 2 , then In initial direction it pours water from time 0 to 1 In period 2, it changes it's direction without pouring any water In the next direction it pours water from 3 to 4 Am i right ??? if not, then wt will be the correct ? Your idea is correct. If p==2, ...
by tan_Yui
Thu Nov 24, 2005 11:44 am
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

My problem was that I considered m is a number of rows and n number of columns! (row-column format). When I saw here last post by w k I realized that m is a number of columns! Because my AC code is handled m and n as row-column format, I think it is your code own problem. And, I think the last post...
by tan_Yui
Thu Nov 24, 2005 10:18 am
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

I think problem statement is ambigous. Coordinaters of sprinklers are given as <row> <column> But size of the field as <number of columns> <number of rows> I realize it only after online contest... ...? I can't find your problem. The first line of each test case contains 3 integers 1<=m,n<=100 (the...
by tan_Yui
Tue Nov 22, 2005 8:40 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36358

Re: 10062 WA...Need help

Your code should handle the space character as one character. To avoid this matter, it's easy to use gets() function instead of scanf() for implementation. Input : a a a Output : 32 2 97 3 And, see this to avoid PresentationError. :) A blank line should separate each set of output. Best regards.
by tan_Yui
Tue Nov 22, 2005 7:16 am
Forum: Volume 108 (10800-10899)
Topic: 10842 - Traffic Flow
Replies: 17
Views: 9779

Re: 10842 Traffic Flow ..

I used Minimum Spanning Tree. I think : --- there may be several roads which connect same cities. --- there may be several roads where the starting point and the terminal are the same. ... like a rotary. First case is like : 1 2 59 1 2 65 And second case is like : 0 0 900 0 0 800 0 0 950 Try to chec...
by tan_Yui
Tue Nov 22, 2005 5:43 am
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

Hello, "w k".
Your input was just a critical input of my code!
After changed to correspond, I could get Accepted! :D
Thank you, "w k" and Moha!
by tan_Yui
Mon Nov 21, 2005 4:28 pm
Forum: Volume 108 (10800-10899)
Topic: 10813 - Traditional BINGO
Replies: 28
Views: 9654

can anyone give me some more io? thanks. I also think htl's input set is incorrect just like sumankar's comment. My AC code outputs different result from ibrahim's one. And following is other i/o. Input : 5 1 16 31 46 61 2 17 32 47 62 3 18 48 63 4 19 34 49 64 5 20 35 50 65 75 74 73 72 71 70 69 68 6...
by tan_Yui
Mon Nov 21, 2005 12:29 pm
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

Thank you for your reply, "Moha", "w k"! I read my code again and improved, then got same answer as Moha output. ...but I keep judge WrongAnswer. Please help again. What is correct answer for this input? And, if you have some special input set, please show me... 10 10 1 5 5 8 3 N 9 17 10 10 1 5 5 8 ...
by tan_Yui
Sat Nov 19, 2005 4:52 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78583

Hi. You have no need to write : #ifndef ONLINE_JUDGE close (0); open ("myprog.in", O_RDONLY); close (1); open ("myprog.out1", O_WRONLY | O_CREAT, 0600); #endif Following is one of the example which is implemented. This code tries to read the lines till EOF. (Of course, the original code is yours. I ...
by tan_Yui
Sat Nov 19, 2005 1:39 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78583

Re: 10038wa.....>O<....C

Your code only outputs for a input of first line.
Because there are many input lines in the input file,
your code should read until reach the EOF.

Best regards.
by tan_Yui
Fri Nov 18, 2005 8:50 pm
Forum: Volume 109 (10900-10999)
Topic: 10965 - Khepel's Problem
Replies: 18
Views: 5378

Hi, everyone. I got WA several times. The reason may be my misunderstanding about the problem description like as him. Would you give me the correct answer for following input? 10 10 1 5 5 8 3 N 7 8 10 10 1 5 5 8 3 N 8 8 10 10 1 5 5 8 3 N 8 9 10 10 1 5 5 8 3 N 8 23 10 10 1 5 5 8 3 N 8 24 10 10 1 10 ...
by tan_Yui
Sat Nov 12, 2005 9:53 pm
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 36624

Runtime Error (SIGSEGV)

Hi, everyone. I got the Judgement ' Runtime Error (SIGSEGV) ' several times. I want to know the cause of this error. Here is my code. Please help.... /* @JUDGE_ID: ******* 10194 C */ #include<stdio.h> #include<string.h> #include<stdlib.h> /* qsort */ #include<ctype.h> /* tolower */ #define NAME_LENG...

Go to advanced search