Search found 8 matches

by Alec
Sun Sep 16, 2007 9:03 pm
Forum: Bugs and suggestions
Topic: why the new system say there are 2186 problems
Replies: 3
Views: 2475

why the new system say there are 2186 problems

it should be 2185. am i right?
by Alec
Sun Sep 16, 2007 12:45 am
Forum: Bugs and suggestions
Topic: About the title of problem in new system
Replies: 2
Views: 1921

594 - One Little#@#Two Little#@#Three Little Endians

594 - One Little#@#Two Little#@#Three Little Endians
it should be
One Little, Two Little, Three Little Endians
by Alec
Sun Sep 16, 2007 12:37 am
Forum: Bugs and suggestions
Topic: About the title of problem in new system
Replies: 2
Views: 1921

About the title of problem in new system

Have a look in the problem 10493, the title is "Cats, with or without Hats", but in the new system, it become "Cats" only....

BTW: I think the problem ID should be keep in the submissions list, it will be much more convenience.
by Alec
Sat Oct 14, 2006 7:38 pm
Forum: Volume 111 (11100-11199)
Topic: 11124 - Troubles for Modern Days Problemsetters
Replies: 7
Views: 5600

11124 - Troubles for Modern Days Problemsetters

I got TL for thousand times. Is there any one give me some help on it. Thank you very much!!
by Alec
Sun Aug 07, 2005 7:58 am
Forum: Volume 7 (700-799)
Topic: 701 - The Archeologists' Dilemma
Replies: 43
Views: 35512

My computer is P-M 1.6G with 512MB. it is about 2sec to finished
but my code got WA or TL on the judge......
my output

7
8
15
12
9
143
629
314
1600
1597
224296
26399
123446
254370
194220
94220
2250226
225093
5766432
63293
78171
70777
325148
3606692
325149
325146

real 0m1.819s
user 0m1.650s
sys ...
by Alec
Sun Aug 07, 2005 7:43 am
Forum: Volume 7 (700-799)
Topic: 701 - The Archeologists' Dilemma
Replies: 43
Views: 35512

Your answer of the last two is wrong

eyhk wrote:For sedafcho's input, I got a different output, the last two.
I'm not able to find 2^31 though.

Code: Select all

7
8
15
12
20
31
28748
24559
4813
325147
325148
11036
37937
6432163
146964308
146964307
I had calculated the 2^146964308 with big number.
the first 20 digits is 99999999281501361389...
by Alec
Thu May 27, 2004 8:19 pm
Forum: Volume 101 (10100-10199)
Topic: 10149 - Yahtzee
Replies: 20
Views: 15926

Can you tell me some detail on how to search that fast?

i am use the DP but not as fast as the search.......
by Alec
Wed May 19, 2004 6:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10050 - Hartals
Replies: 59
Views: 29776

i think this is your mistake

[cpp]
#include<iostream.h>

#define MAX 3655

void sim(int day)
{
int a[MAX*2]={0};
register int i,j;
unsigned long long h;
cin >> i;
for(;i>0;i--)
{
cin >> h;
for(j=1;(j*h) <= day ;j++)
a[j*h]=1;
}

for(i=7;(i-1)<=day;i+=7)//i fixed this line,see?
a =a[i-1]=0;

j=0 ...

Go to advanced search