The NextPalindrome
My code works well for many test cases i have including boundary conditions like(999,0) but still i am getting wrong answer. Can anyone help me out.I have been trying this for long time.Below is my...
View ArticleZadania na polskim spoju dobre do nauki wyrażeń regularnych
Witam serdecznie, zacząłem powoli bawić się troszkę z wyrażeniami regularnymi i pomyślałem, że jeśli ktoś byłby zainteresowany to miałby taką listę zadań pod ręką, a raczej pod jednym linkiem. PS: Mam...
View ArticleThe NextPalindrome
Please make sure to put your code in "preformatted text" so that we can read it. doer189: scanf("%d",&n); The a number with 10^6 digits will not fit in n.
View ArticleWa in SPOJ.com - Problem BAT1
You're not handling the batch costs correctly. You are not defining your dp-state correctly. On a stylistic note, your code is poorly formatted. You seem to be unsure of where you want to put brackets...
View ArticleHPYNOSII - Happy Numbers II - TLE even after multiple attempts
Think about the worst case scenario. If all of the test cases were exactly the same you would be doing many steps multiple times. Is there a way that you could avoid having to re-do this work for...
View Article978. Stos [STOS]
Też mam problem z tym zadaniem. U mnie wszystko działa, ale sędzia wywala mi SEGFAULTa. short int stack[10]; char stack_pointer = 0; char operation; while((operation = getchar_unlocked() )!= EOF) {...
View ArticleGetting TLE in GSS1
I have implemented segment tree correctly but I don't know why I am getting TLE in GSS1 problem. I have also used fast I/O methods.Can anyone please help me. Link to my code is:...
View ArticleHPYNOSII - Happy Numbers II - TLE even after multiple attempts
Thank you ....Will try ...
View ArticleStatus screen - seeing the green after ac
That's right. It is not that hard to find your commit on the list even if it is green.
View ArticleHelp with Bytelandian Gold Coins
plz help me in prblm Bytelandian gold coins ....if i use recursion for every number its tle ..if i use arr of size 1000000000 its not possible...help me out
View ArticleThe NextPalindrome
Thnaks for ur reply.I have changed " n " from int to long int, but still i get wrong answer on spoj
View Article978. Stos [STOS]
Tak napisana poniższa funkcja powoduje błąd. dstachow: scanf("%hd"); Albo musisz podać zmienną, do której scanf zapisze wczytaną wartość, albo musisz dodać gwiazdkę: scanf("%*hd"); aby poinformować,...
View ArticleHelp with Bytelandian Gold Coins
Look at the values for the input for your recursion. Notice that they get small quickly.
View ArticleThe NextPalindrome
long int and int are the same. long long int is not large enough either. Read it in as a string.
View Article978. Stos [STOS]
Wielkie dzięki, mam AC. A umiałbyś powiedzieć czymu mój kod Ci się nie podoba, czy to tylko wkestia estetyki?
View ArticleZadania na polskim spoju dobre do nauki wyrażeń regularnych
Nie rozwiązywałem tych zadań za pomocą wyrażeń regularnych, ale w takim razie może można do twojej listy dodać...
View ArticleZadania na polskim spoju dobre do nauki wyrażeń regularnych
Nie rozwiązywałem jeszcze zadań, które podałeś korzystając z wyrażeń regularnych, ale przyglądając się im na pewno się da. Podejrzewam, że wszyscy Ci, którzy będa chcieli spróbować swoich sił i...
View Article978. Stos [STOS]
Raczej estetyka, np ja użyłbym tylko typu int, [iwszędzie zamiast %hd, %d, a w poniższy sposób można deklarować zmienne [także short]: int stack[11], // tu dodatkowy 1 element stack_pointer = 0, //...
View ArticleGetting WA for VACATION problem. Please help!
Hi, I am trying to solve this question using floyd warshall's algorithm. vacation.cc (1.5 KB) Can someone please give me a hint on how to solve this question?
View Article