Search found 148 matches

by 10153EN
Tue Jul 02, 2002 5:28 pm
Forum: Volume 103 (10300-10399)
Topic: 10312 - Expression Bracketing
Replies: 22
Views: 4876

Excuse me, the above definition still confused me. Could you explain more to me with the example in the problem description? I wanna know what's the difference between the first 6 bracketing and the last 5.

Thx in advance.
by 10153EN
Tue Jul 02, 2002 7:24 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18981

Please read more carefully on the input description of the problem. You have some assumption~ :wink:
by 10153EN
Tue Jul 02, 2002 7:17 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 42594

Have you searched and read the previous posts about problem 101? (There should be a lot)

I think the posts can help~

And could you please post your post in the thread about 101, as it's not a new topic.
by 10153EN
Tue Jul 02, 2002 7:12 am
Forum: Volume 3 (300-399)
Topic: 337 - Interpreting Control Sequences
Replies: 20
Views: 4372

If you don't want to change your codes a lot, just change the line scanf("%d",&line); to scanf("%d\n",&line); A more convenient and faster way (but need to change your code :wink: ) is to use gets. gets will get a line until the \n character is read. So you don't need to read every character each ti...
by 10153EN
Tue Jul 02, 2002 5:57 am
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 34105

From your code: for(i=n;i>n-k;i--) data =1; where n and k are the inputs. However your size of array data is 141 only (I donno why is this number :D ) And actually n and k can be larger, as the problem description said n >= 1 but does not has upper limit. For example n and k can be equal to 21474836...
by 10153EN
Tue Jul 02, 2002 5:10 am
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 34105

First of all, why you post this message, which is about p530, in Volume I but not Volume V?
by 10153EN
Mon Jul 01, 2002 9:08 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 32008

I have received your codes~ I have not taken a in-depth look at it, but I just have done an interesting thing: I use a program to generate a file consisting of 2,3,4,5,...,999999, then use this file as the input file of my program and your program. Finally, I diff the output file generated by the tw...
by 10153EN
Mon Jul 01, 2002 8:39 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 32008

Same as mine except the one for input 1 (mine is prime, but it doesn't matter, as it's not an input, which is stated 1 < N < 1000000).

If you don't mind, could you send your codes through Private Message so that I can have a look at it? I am now very curious and it's interesting to me~
by 10153EN
Mon Jul 01, 2002 8:29 pm
Forum: Volume 8 (800-899)
Topic: 830 - Shark
Replies: 7
Views: 6123

830 - Shark

I am trying on this problem, but got lots of WAs. I think I have checked for all conditions (at least I think :wink: ). Could anyone tell me if there's any tricky input exists?
by 10153EN
Mon Jul 01, 2002 8:23 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 32008

Same as mine. I think the problem is of no problem. Finally, would you please copy-and-paste your outputs here so as to give me a look?

I think it's the final thing remaining to check~
by 10153EN
Mon Jul 01, 2002 7:31 pm
Forum: Volume 3 (300-399)
Topic: 337 - Interpreting Control Sequences
Replies: 20
Views: 4372

Yes. And to htl, the fflush(stdin) only works for stdin inputs. In OJ system, the inputs are fed from files, so in this case, this is what Caesum said, for example the input is as follows: 1 abcde the first character c got is '\n', which means termination of the loop. You can try to run your program...
by 10153EN
Mon Jul 01, 2002 7:26 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 32008

I agree with the full-stop in the outputs. But to handle the string? This problem need not to deal with strings, but just prime number calculations.
by 10153EN
Mon Jul 01, 2002 7:07 pm
Forum: Volume 3 (300-399)
Topic: 337 - Interpreting Control Sequences
Replies: 20
Views: 4372

No, I just got runtime error~
by 10153EN
Mon Jul 01, 2002 7:01 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 32008

Not much idea, as the output is straight-forward, except the full-stop at the end of the line.

Would you post your outputs for N = 1-30 and N = 999970-1000000?
by 10153EN
Sun Jun 30, 2002 9:08 pm
Forum: Volume 100 (10000-10099)
Topic: 10019 - Funny Encryption Method
Replies: 45
Views: 5794

Just quoted from the problem description (I think you should know also :wink: ): [quote]1) Read the number N to encrypt M = 265 2) Interpret N as a decimal number X1= 265 (decimal) 3) Convert the decimal interpretation of N to its binary representation X1= 100001001 (binary) 4) Let b1 be equal to th...

Go to advanced search