I made a stupid mistake----Is that 2520 days really enough? I am wrong.
Because we need to simulation about 3000 days to get right answers. Some cow will be eaten in second 'round'.
Now I get AC, thanks
Tips: Heap is a way to get AC
Search found 10 matches
- Fri May 27, 2005 2:36 am
- Forum: Volume 102 (10200-10299)
- Topic: 10273 - Eat or Not to Eat?
- Replies: 5
- Views: 3872
- Tue May 24, 2005 8:33 am
- Forum: Volume 102 (10200-10299)
- Topic: 10273 - Eat or Not to Eat?
- Replies: 5
- Views: 3872
10273 - Eat or Not to Eat?
Delete after AC
- Fri May 20, 2005 9:36 am
- Forum: Other words
- Topic: How to change the suffix of a account?
- Replies: 4
- Views: 1468
How to change the suffix of a account?
Someone see my suffix when I sumbit a program to OJ.Then they use my account as a test account! They submit again and again. You can see, the ID 49054 was sumbitted for many times! They do it for fun and I don't know what should I do. Please tell me How to change the suffix?And how to protect accoun...
- Mon May 16, 2005 11:44 am
- Forum: Volume 3 (300-399)
- Topic: 312 - Crosswords (II)
- Replies: 20
- Views: 8993
p312 TLE??
I got PE in ZJU but got TLE on UVA I really don't know why! Thanks for you reply program p312; const di:array[1..16,1..2] of integer=((0,0),(0,1),(0,2),(0,3), (0,4),(0,5),(1,0),(1,5), (2,0),(2,5),(3,0),(3,1), (3,2),(3,3),(3,4),(3,5)); var a,c:array[0..25,0..25] of boolean; b:array[0..25,0..25] of in...
- Fri May 13, 2005 5:20 am
- Forum: Volume 3 (300-399)
- Topic: 306 - Cipher
- Replies: 74
- Views: 18514
I really don't know why I got TLE on p306
program p306; type arr=array[1..500] of longint; var n,i,k,r,j,y:longint; a:arr; w,get:array[1..500] of char; ch:char; function lcm(a,b:longint):longint; var t:longint; begin if b=0 then lcm:=a else lcm:=lcm(b,a mod b); end; function circle(w:arr):longint; var flag:array[1..500] of boolean; i,k1,ans...
- Thu May 05, 2005 11:06 am
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 10925
- Thu May 05, 2005 11:04 am
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 119
- Views: 36855
10194 Football -- Why WA?
Any trick data for this problem?I got Wa all the time. Thanks for you reply. program p10194; var p1,p2,len,test,sc1,sc2,j,num,v,i,team,time:integer; cupname,st1,st2:string; name,bname:array[1..30] of string; ch1,ch2,ch:char; p,g,l,w,d,s,x:array[1..30] of integer; check1,check2:boolean; function find...
- Thu May 05, 2005 5:26 am
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 10925
- Mon Apr 18, 2005 11:05 am
- Forum: Volume 2 (200-299)
- Topic: 216 - Getting in Line
- Replies: 57
- Views: 24588
Prob 216 Getting in Line----Why CE?
program p216; type arr1=array[1..8] of integer; arr2=array[1..8] of boolean; var ans,dd:real; x,y,f,f1:arr1; dist:array[1..8,1..8] of real; n,num,i,j:integer; flag:arr2; procedure try(i:integer); var flags:arr2; ff:arr1; ddd:real; k,j:integer; begin if (i=n+1) and (dd<ans) then begin for k:=1 to 8 d...
- Mon Mar 14, 2005 8:03 am
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 10925
202 Help ME!!!
I had tried all I could did, but IT SITLL WA!
Please help me! Thanks for you reply
Delete after AC
Here thanks again
Please help me! Thanks for you reply

Delete after AC
Here thanks again