Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
Страница 1 |
TLE 18 test, python 3 | Timur Valeev | 1311. Устойчивая конструкция | 27 фев 2020 21:18 | 1 |
My algorythm has maximum O(n^2) complexity. I have TLE 18 test. But, when i artificially set limits for n (amount of layers) to 200 and for k (amount of bricks in a single layer) to 290, my program still gets TLE 18 test, i really have no idea how is it possible. It should get WA\AC if inputs are more than limits since i do not see any possibility of an endless cycle in my algo. Edited by author 27.02.2020 21:19 Edited by author 27.02.2020 21:36 |
Problem 1311 Stable Construction has been changed | Vladimir Yakovlev (USU) | 1311. Устойчивая конструкция | 30 окт 2016 16:01 | 1 |
* The minimal height of the wall is set to 1 (previously 0). * The total number of bricks is set to be between 1 and 100 000 (previously, not more than 1 000 000, but there were no such tests). * New tests have been added. * All accepted solution have been rejudged, 98 authors have lost their AC. |
Statement | Alex Danilyuk [SESC USU Dandelion] KTC | 1311. Устойчивая конструкция | 10 июн 2014 15:44 | 1 |
Statement Alex Danilyuk [SESC USU Dandelion] KTC 10 июн 2014 15:44 What does 'system of bricks' (or 'система кирпичей' in russian statement) mean? |
Problem 1311 is renamed (+) | Sandro (USU) | 1311. Устойчивая конструкция | 1 апр 2012 13:55 | 1 |
There were two problem "Bricks" (1234 and 1311). New name of problem 1311 is "Stable Construction". |
testdata is weak | [York Hotel] maple | 1311. Устойчивая конструкция | 24 апр 2011 19:51 | 1 |
I think the test data is very weak. I guess there is no big amount of bricks at all. |
can anyone help me with a solution? | gigimarga | 1311. Устойчивая конструкция | 21 авг 2007 17:05 | 2 |
hello, i try to solve this problem, but i did a mistake..i got WA#3...i think my ideea it's not good. can anyone give me a hint? thx a lot Edited by author 20.02.2007 04:29 Edited by author 20.02.2007 04:29 There is a post with this test on the board) |
Special thing to check | Samsonov Alex [USU] | 1311. Устойчивая конструкция | 6 авг 2008 02:24 | 3 |
Just test your program with test: 2 1 1 2 0 answer: No This can help you with WA4 Another test for check overful: 10000 1 0 10000 1 0 10000 ... 1 0 10000 answer: Yes I thought that any valid input provides support for higher bricks, my mistake - it says "no more than one" :) Edited by author 06.08.2008 02:30 |
Test 3 | TestT | 1311. Устойчивая конструкция | 1 апр 2005 14:24 | 1 |
10 1 1 11 1 2 12 1 3 13 1 4 14 1 5 15 1 6 16 1 7 17 1 8 18 1 9 19 1 10 20 No |
Who can tell me what's wrong with my code? Only 50 lines!! | Sa Lang Hae | 1311. Устойчивая конструкция | 26 окт 2004 16:57 | 2 |
I keep getting wa on test 3. I think my program is quite easy to understand and it's very short. Many thanks if you would love to help me. Or you can send your solution to me: fujieyun@163.com Const MaxN = 1000; Zero = 1e-8; Var B1, B2 : Array [1..MaxN,1..2] of LongInt; G1, G2 : Array [1..MaxN] of Record W, Loc : Double; End; N, H, N1, N2, I, J, P : Integer; Begin ReadLn( H ); if H = 0 then Begin WriteLn( 'Yes' ); Halt; End; ReadLn( N1 ); For I := 1 to N1 do Begin ReadLn( B1[I,1],B1[I,2] ); G1[I].W := B1[I,2]-B1[I,1]; G1[I].Loc := (B1[I,1]+B1[I,2])/2; End; For I := 2 to H do Begin ReadLn( N2 ); P := 1; FillChar( G2, Sizeof(G2), 0 ); FillChar( B2, Sizeof(B2), 0 ); For J := 1 to N2 do Begin ReadLn(B2[J,1], B2[J,2] ); G2[J].W := B2[J,2] - B2[J,1]; G2[J].Loc := (B2[J,1] + B2[J,2])/2; if (P<=N1)and(G1[P].Loc < B2[J,1]+Zero) then Begin WriteLn( 'No' ); Halt; End; While (P<=N1)and(G1[P].Loc+Zero < B2[J,2]) do Begin G2[J].Loc := G2[J].Loc + (G1[P].Loc-G2[J].Loc)*G2[J].W/(G1[P].W+G2[J].W); G2[J].W := G2[J].W + G1[P].W; Inc( P ); End; End; if P<=N1 then Begin WriteLn( 'No' ); Halt; End; B1 := B2; G1 := G2; N1 := N2; End; WriteLn( 'Yes' ); End. !! Edited by author 26.10.2004 17:20 |
Help! Please. I got WA on test #5. Can Anybody give me some tests data? Help me, PLEASE | Victor Barinov (TNU) | 1311. Устойчивая конструкция | 27 июл 2017 16:14 | 6 |
0 /Yes 1 1 0 10000 /Yes 1 5 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 /Yes 2 1 0 2 1 1 3 /No 2 1 1 3 1 0 2 /No 2 1 1 1000 1 1001 2000 /No 2 3 1 10 11 20 21 30 1 5 26 /Yes 2 3 1 10 11 20 21 30 1 5 25 /No 2 1 21 30 1 5 25 /No 4 2 4 5 6 7 1 4 7 1 3 6 1 2 5 /No Thank You very much. Now I got AC. I found mistake in my programm. It's a lot help checking the board here before submitting. I got AC with one shot. 2 1 0 2 1 1 3 /No 2 1 1 3 1 0 2 /No can you explain why? OK, i got it. [0,2] contains only {0, 1} cells, but i thought {0, 1, 2} |
Please, help. | VC15 | 1311. Устойчивая конструкция | 13 сен 2004 00:19 | 7 |
We have a test. 1 1 12 20 Of course it is stable. But where is the center of gravity. It is (16; 0.5), isn't it? It means that the center of gravity is determined by only x-coordinate, isn't it? It dosen't mathers the y coordinate because there is no force to move bricks left or right, just gravity to move then bottom. the center is 16. I can't understand. 2 1 0 2 1 1 3 This configuration is unstable. My program "says" that the center of gravity is 1.5. Is it right? If it is then it is support brick and system is stable. What's wrong? Pleasse, help!!! I wanna thanks to my mum, to my dad, to dog... It's a joke. (I don't have a dog) Thanks to Dmitry 'Diman_YES' Kovalioff and Diac Paul. |
is this stable"? | Diac Paul | 1311. Устойчивая конструкция | 6 авг 2008 02:29 | 3 |
this is the test: 5 1 5 6 1 5 6 2 1 2 5 6 1 1 6 1 3 4 but this? 4 1 5 6 1 5 6 1 1 6 1 3 4 this should have the same answers, but my program gives Yes on the first one an No on the second. Is it correct? My program got WA on test 4. if it's correct give me some wise tests if you know any... WA4 is when some brick floats in the air and you output Yes. |
Need help with test | Blademaster | 1311. Устойчивая конструкция | 1 окт 2004 16:57 | 2 |
Check this: 4 1 0 3 1 1 4 1 2 5 1 0 3 In real world this contsruction is stable (i think) ... but is it stable in task description? No, it isn't. Maigo Akisame (maigoakisame@yahoo.com.cn) 1 окт 2004 16:57 The mass center of the topmost two bricks fall on the left edge of the third brick, so it's considered unstable. |
can anyone give some test data? | let | 1311. Устойчивая конструкция | 22 апр 2004 19:13 | 1 |
i have try many times,but i don't know why i got WA at test #3,can anyone give some test data?Thanks! |
Excuse me. Who can tell me the answer of this testdata? | I'm ALIVE. | 1311. Устойчивая конструкция | 21 апр 2004 14:59 | 3 |
3 1 49 52 2 1 50 51 100 1 49 52 I think it is unstable. But how to explain it using the theorem given by this problem? Read statement: "...Each brick was placed horizontally and lay on no more than one brick from the lower row..." Oh sorry, I haven't seen it. Thank you very much. |
Need clarification. | Oberon (Yura Znovyak) | 1311. Устойчивая конструкция | 1 окт 2004 16:58 | 5 |
What is the anwer for such construction: 2 2 10 20 50 60 2 10 20 50 60 is it stable? But system of 2 bricks from second floor [10, 20] and [50, 60] have their center of mass in 35 which is not on brick. Another example is sort of ladder: 4-ht level: [3, 6] 3-rd level: [2, 5] 2-nd level: [1, 4] 1-fs level: [0, 3] in real word it is unstable, but what should I output? The first one is stable, the second is not. Everything in this problem completely matches the real world. The system of breaks falls if its center of masses doesn't stand on another break, i.e. like in real world. |
for each brick, is only its center of gravity considered or [+] | vs | 1311. Устойчивая конструкция | 6 авг 2008 02:30 | 2 |
for each brick, is only its center of gravity considered or the center of gravity of this brick and all the bricks this brick supports ( and the bricks they support and so on...) All the bricks that it supports. |