Afişează mesaje
|
Pagini: [1] 2 3
|
2
|
infoarena - concursuri, probleme, evaluator, articole / Algoritmiada 2014 / Răspuns: Feedback Runda 1
|
: Decembrie 23, 2013, 09:12:56
|
In timpul unui concurs: * arhiva ar trebuii sa fie blocata. * Din alea 100 de teste, doar 2-4 sa fie rulate. * Evaluare poate incepe dar cu rezultatele ascunse. * Limitare la numarul de surse trimise pe problema/concurent (e.g. 10-20). Da, Topcoder si Codeforces se opresc la primul test picat. Dar gandeste-te ca-s concursuri internationale si au multi mai multi participanti. Si da, Topcoder si Codeforces e cu AC sau nu si e mult mai simplu sa generezi teste pentru ca nu trebuie sa te gandesti la distributia punctajelor. (E.x. un brut 10pct, un brut optimizat 20pct, n^5 30pct, n^3 50 .. etc). Si un avantaj pentru comisie la topcoder si codeforces e ca testele din challenge sunt adaugate. * Iar la kami trebuia sa se gandeasca comisia la faza ca suma creste repede pentru teste destul de random. * La numarul de servere, sper ca a mai evoluat infoarena de acum 7 ani cand rula pe un laptop. Oricum nu trebuie 100 de teste, ca daca nu-s generate calumea tot degeaba. dar 20-30 parca ar fii indeajuns pentru a acoperi destule cazuri. Echipa infoarena cere feedback, asa ca luati feedback-ul fara sa aparati toate criticile  . Si daca din feedback se poate face infoarena mai bun.. atunci sa se faca. Multumim echipei pentru runda&probleme 
|
|
|
11
|
infoarena - concursuri, probleme, evaluator, articole / Informatica / Răspuns: putin ajutor nu ma descurc!!!
|
: Februarie 09, 2013, 09:34:04
|
Idei?
Poi ai cam explicat tot algoritmul. Ce te opreste sa-l implementezi?
P.S: Daca fiserele sunt asa mici ai putea sa citesti al doilea fisier in memorie. Si il tii intr-un map<string, string> (m[a] = b). Apoi citesti primu fisier linie cu linie si te uiti in map. si afisezi in al 3-lea fisier. Ai putea sa rescrii primu fisier dar iti recomand sa scrii in al 3-lea fisier ca sa nu iti strici primu fisier din cauza unui bug.
Incearca sa implementezi, si faci un fisier mai mic intai si testezi daca merge. spor la implementat.
|
|
|
13
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Combinatorics shortlist
|
: Decembrie 21, 2012, 02:31:25
|
@mugurelionut If N is prime is easy to prove that FP is divisible by N. If N is prime => FP = 2^1 + 2 ^ 1 + ..... 2^N = 2 * (N - 1) + 2^N = 2(N - 1 + 2^(N-1)) 2^(N-1) - 1 is divisible by N if N is prime by Fermat Little Theorem. => FP is divisible by N. Proving it for N composite is left as an exercise for the reader
|
|
|
18
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Combinatorics shortlist
|
: Decembrie 15, 2012, 07:26:19
|
16.
Let's represent the problem as a complete undirected graph with 6 vertices. Each vertex represent a person and each edge represents a relationship between 2 distinct people.
Each edge is either of type A or of type B (e.g. A means friends, B means enemies. These can be interchanged with no change in proof).
Now we have to prove that any complete undirected graph with 6 vertices has at least on tuple (a, b, c) (let's call it triangle) of distinct vertices such that E(a, b), E(b, c), E(a, c) are edges of same type.
For any graph (with properties mentioned above) let's pick any vertex VS. VS is connected to 5 other vertices. Thus regardless of the configuration of the graph, among these 5 connections (edges) there are at least 3 of same type. Let's say type A.
Among these edges of type A let's pick any 3 and note the vertices that they connect a, b, c.
Now, VS-a, VS-b, VS-c are edges of type A and there are 2 cases: 1. at least one edge a-b, a-c, b-c is of type A => then we have a triangle with edges of type A => problem solved. 2. none of the edges a-b, a-c, b-c is of type A => these 3 edges are of type B but these 3 edges form a triangle (a, b, c) => problem solved.
1 + 2 => problem solved.
|
|
|
24
|
infoarena - concursuri, probleme, evaluator, articole / RMMS 2011 / Răspuns: Gossips
|
: Februarie 26, 2011, 10:44:28
|
Daca a face parte din b, si b face parte din c.
Atunci a face parte din c?
Sau mai bine zic daca "->" inseamna face parte din
atunci pe exemplul: 1->2->3->4->5, daca 3 afla o barfa.. atunci si 1, si 2, si 3, si 4, si 5... afla barfa?
|
|
|
|