| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Why i got WA#11????? | Rizvanov++ de xXx | 1310. Диагностика ACM | 31 окт 2012 18:32 | 4 |
Test#11 4 10 4 2497 Out - 10 10 10 2 What's wrong? I think the res is : 10 10 10 10 |
| WA23 | IgorKoval(from Pskov) | 1927. Магия и садоводство | 31 окт 2012 15:45 | 1 |
WA23 IgorKoval(from Pskov) 31 окт 2012 15:45 Don't use int. Use long long. Edited by author 31.10.2012 15:46 |
| Wrong test. | -XraY- | 1318. Логарифм | 30 окт 2012 19:53 | 1 |
My program got Crash (assert), cause this test has some trash in the end. |
| В чём ошибка? C++ | Evgeniy | 1567. SMS-спам | 30 окт 2012 18:56 | 1 |
Валят первым тестом, вроде работает #include <stdio.h> void main() { int i=0,cash=0; char text[1000]; gets(text); while(text[i]!=NULL && i<1001) { if (text[i]=='a' || text[i]=='d' || text[i]=='g' || text[i]=='j' || text[i]=='m' || text[i]=='p' || text[i]=='s' || text[i]=='v' || text[i]=='y' || text[i]=='.' || text[i]==' ') cash+=1; if (text[i]=='b' || text[i]=='e' || text[i]=='h' || text[i]=='k' || text[i]=='n' || text[i]=='q' || text[i]=='t' || text[i]=='w' || text[i]=='z' || text[i]==',') cash+=2; if (text[i]=='c' || text[i]=='f' || text[i]=='i' || text[i]=='l' || text[i]=='o' || text[i]=='r' || text[i]=='u' || text[i]=='x' || text[i]=='!' ) cash+=3; i++; } printf("%d",cash); } Edited by author 30.10.2012 18:58 |
| Тест из примера | AlexDevyatov | 1929. Не все любят плюшевых мишек | 30 окт 2012 18:32 | 3 |
Поясните пример, пожалуйста Холден - не Hater. Holden is no hater тогда посмотрим на отряды с его участием: look at the companies with Holden. 1.1 2 3 2.1 2 4 3.1 2 5 4.1 2 6 5.1 3 4 6.1 3 5 7.1 3 6 8.1 4 5 9.1 4 6 10.1 5 6 всего Hater-ов 4, поэтому даже если задействовать здесь 2х, то останутся двое на следущую группу. A count of Haters is 4. If we use 2 haters in one group then we have other haters to other group |
| WA#4? | Amandosov | 1110. Степень | 30 окт 2012 16:21 | 1 |
WA#4? Amandosov 30 окт 2012 16:21 #include <iostream> int fow(int n,int m) {int s=1; for(int i=0;i<m;i++) {s=s*n;} return s; } int main() {int x=0,y,m,n; std::cin>>n>>m>>y; for(int i=0;i<m;i++) { if(fow(i,n)%m==y) {std::cout<<i<<' '; x=1;} } if(x==0) std::cout<<"-1"; return 0; } |
| Dear autors or another users, i got WA#5, where is my bug ? | Borisov Sergey | 1654. Шифровка | 30 окт 2012 12:29 | 1 |
this my solution: #include <iostream> #include <string> #include <stdlib.h> #include <algorithm> using namespace std; int main(){ int bilo; string s; cin>>s; for (int j = 0; j < s.length() - 1; j++){ bilo = 0; for (int i = 0; i < s.length()-1; i++){ if (s[i] != '1') if ((s[i] == s[i+1])){ s[i] = '1'; s[i+1] = '1'; bilo = 1;
if (i < s.length()-1){ rotate(&s[i], &s[i+1], &s[i] + s.length() - i); rotate(&s[i], &s[i+1], &s[i] + s.length() - i); } } } if (bilo = 0) break; }
int i = 0; while (s[i]!='1'){ cout<<s[i]; i++; }
//system("pause"); return 0; } please send me answer on my e-mail: sergeo_91_@mail.ru or write me here. P.S. thank you in advance. |
| Memory Limit Exceed in test 8 | dangtrinh93 | 1002. Телефонные номера | 30 окт 2012 09:44 | 1 |
i use BFS and can't pass test 8 because MLE help me, please Edited by author 30.10.2012 09:44 |
| Statement | ibra (TNU) | 1922. Команда супергероев | 29 окт 2012 20:42 | 4 |
В условии почему-то не упоминается что команда сплочённая ещё и когда она состоит из всех людей и при этом эффективная. - Edited by author 28.10.2012 12:52 Edited by author 29.10.2012 20:47 |
| Input 4; 8.... Output? | barca | 1120. Сумма последовательных чисел | 29 окт 2012 20:00 | 2 |
If i input 4, what is answer? or if i input 8, what answer? |
| Admins, please, insert this problem to problem set | alexProgrammer | A. Извержение вулкана | 29 окт 2012 13:40 | 2 |
Agreed, it is good to have some basic problems for beginners. |
| it's too easy | Nikolo.frost | 1219. Symbolic Sequence | 29 окт 2012 11:50 | 1 |
#include<iostream> #include<cstdlib> using namespace std; int main(){ int i,j,n,m,k; for(i=0;i<1000000;i++){ k=rand()%26; k+=97; cout<<(char)k; } //cin.get(); return 0; } |
| Результат | Renat | 1928. И вновь про экологию | 29 окт 2012 02:49 | 2 |
Why do you have as a result is 31, not 32. please make sure that! Read the condition of the problem more carefully: "If there is no money in the budget then applications are not accepted any more." |
| Вопрос по условию | EMLi29_5 | 1928. И вновь про экологию | 29 окт 2012 02:48 | 2 |
Что для центров важнее: получить больше прибыли или минимизировать прибыль соперника? More money is more important than make less money to opponent. |
| JAVA WA#15 | ile | 1161. Stripies | 29 окт 2012 02:46 | 2 |
Don't use any collections (TreeSet/HashSet/etc) (ArrayList might also be a problem) looks like when they add/remove/update their elements they do some stuff to their elements, so that doubles change their magnitude. u might also try to use YouOwnDouble class implements Comparable using collections gives AC so u r mad |
| test#2 | Trần Quang Chung | 1224. Спираль | 28 окт 2012 23:00 | 3 |
test#2 Trần Quang Chung 9 июн 2006 13:32 Use these tests: 4 4 -> 6 5 4 -> 7 4 5 -> 6 1 9 -> 0 9 1 -> 1 I think that you miscalculated the answer at the second example.It's 8,isn't it ? Use these tests: 5 4 -> 8 |
| what is wrong? Pascal | Kirill Pugachev | 1446. Волшебная шляпа | 28 окт 2012 18:07 | 2 |
var n,i,j,k:integer; s,h,g,r:string; a:array[1..200] of string; begin s:='Slytherin'; h:='Hufflepuff'; g:='Gryffindor'; r:='Ravenclaw'; readln(n); for i:=1 to 2*n do readln(a[i]); writeln(s,':'); for i:=2 to 2*n do if a[i]=s then writeln(a[i-1]); writeln; writeln(h,':'); for i:=2 to 2*n do if a[i]=h then writeln(a[i-1]); writeln; writeln(g,':'); for i:=2 to 2*n do if a[i]=g then writeln(a[i-1]); writeln; writeln(r,':'); for i:=2 to 2*n do if a[i]=r then writeln(a[i-1]); end. a:array[1..2000] of string; |
| Admins, please, insert this problem to problem set | alexProgrammer | L. Халва | 28 окт 2012 17:33 | 1 |
|
| To Jury (when n = 3) | Olympic Bear | 1929. Не все любят плюшевых мишек | 28 окт 2012 13:15 | 6 |
If n = 3 then general headquarters are NOT able to form the three-man groups from the rest of fighters so that every group will contain at least one teddyhater. So, it seems that correct answer should be 0 for n =3 (test #2) Actually it should be 1, because he HAS to think for 1 minute to join the group, also general headquarters are able to form a three-man group, because n=3=2+Holden. headquarters are NOT able to form the three-man groups from the REST of fighters. Rest of fighters = 0, so NOT able to form the three-man groups. Holden тоже может быть teddyhater ом? They CAN form 0 groups, so that EACH OF THESE 0 GROUPS will contain teddyhater Tests with n = 3 are removed. n >=6 in the statement now. |
| No subject | SPb SU Taken: Demidov, Korystov | 1926. Турнир интеллектов | 28 окт 2012 11:22 | 2 |
No subject SPb SU Taken: Demidov, Korystov 27 окт 2012 15:47 Какие ограничения накладываются на c[i]? Какой максимальной длины может быть это число? 2*3*5*7*11*13*17*19*23*29*31*37*41*43*47 Edited by author 28.10.2012 11:22 Edited by author 28.10.2012 11:22 Edited by author 28.10.2012 11:22 |