| Show all threads Hide all threads Show all messages Hide all messages |
| Spelling mistake in Russian version | mikroz | 1665. Dean's Financial Pyramid | 23 Jul 2014 20:53 | 1 |
|
| WA 5 | Aaa Ppp | 1354. Palindrome. Again Palindrome | 23 Jul 2014 19:13 | 3 |
WA 5 Aaa Ppp 3 Mar 2012 08:33 Hi, Does anyone know what the test case is? I've tried my solution against the following, and they seem to be correct. A little lost right now. "No", "OnLine", "AbabaAab", "abaabaaba", "2101221012", "122212221", "A", "AA", "aba", "saaasaaas", "babab" Solutions ========= NoN OnLineniLnO AbabaAababA abaabaabaaba 210122101221012 1222122212221 AA AAA ababa saaasaaasaaas bababab Thanks! Edited by author 03.03.2012 08:35 Re: WA 5 Kommander [SESC UrFU] 23 Jul 2014 19:13 try test qwertew Answer is qwertewetrewq or not qwertewq |
| Time limit | Daniel | 1131. Copying | 23 Jul 2014 13:09 | 1 |
Какие есть способы избежать Time limit? What are the ways to avoid Time limit? This is my Prog: var i,n,k,l,g:integer; begin read(n,k); l:=1; i:=1; while i<k do begin l:=l+i; inc(g); if l<n then i:=i*2 else break; end; while l<n do begin l:=l+k; inc(g); end; writeln(g); end. |
| No subject | Zayakin Andrey[PermSU] | 1129. Door Painting | 22 Jul 2014 22:13 | 3 |
No subject Zayakin Andrey[PermSU] 19 Feb 2010 00:26 flow can solve this. Edited by author 19.02.2010 16:08 How we can solve this using flow? Some hints? Thanks, Ostap Re: No subject Vedernikoff 'Goryinyich' Sergey (HSE: АОП) 22 Jul 2014 22:13 OMG! How difficult - flow, it's O(N^3) and lots of code... Let the DFS help you! =) |
| For whom, who get WA 6 | Gleb_Kazantaev(NNSTU) | 1210. Kind Spirits | 22 Jul 2014 19:25 | 1 |
If u used Dijkstra alg, u should add min price for all pices, and theh deduct it from unswer multiplying on count of the tops. Sorry for my eng :D |
| Test #10 | levani | 1224. Spiral | 22 Jul 2014 04:03 | 1 |
I got WA 10, where is wrong? /////////////////////// #include <iostream> using namespace std; int main() { int N,M,sum,counter,mul; counter=0; cin>>N>>M; sum=M; mul=N*M; while(sum!=mul) { N--; sum+=N; counter++; if(sum==mul) break; M--; sum+=M; counter++; } cout<<counter<<endl; } |
| If you have WA 30+ | Disintegrator | 2008. Swifty | 22 Jul 2014 01:59 | 2 |
Try different epsilons. I got AC with solution that had WA 30,32,34 before that. And all that i changed was epsilon. Better solution would be to do all calculation in integer types (e.g. long long) - thus you avoid precision issues. |
| Программа работает на MS VS express 2013, но проверку на Times Online Judge не проходит, что не так? | Dreamer | 1001. Reverse Root | 21 Jul 2014 21:38 | 2 |
#include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { float a[4] = { 0 }; int i;
for (i = 0; i < 4; i++){ cin >> a[i]; }
for (i = 0; i < 4; i++){ printf("%.4f\n", sqrt(a[i])); } return 0; } А кто вам сказал, что чисел будет ровно 4? |
| WA 16, or how I lost 13 tries | [RISE] Levon Oganesyan [RAU] | 1430. Crime and Punishment | 20 Jul 2014 20:50 | 3 |
Hi all. I tried to solve this problem with standart method. I devide all numbers on GCD, and calculate all x in A*x + B*y and I tried find the maximum T, T <= N. In cicle I write something like this: if ( max < T ) { max = T; //something too } and have WA16. After WA16 I tried fix my program, but don't find anything global. Fix something right on wrong, I 13 times get WA 1 - 16. Then I changed ( max < T ) on ( max <= T ), and don't send, because did not think, what that will be changed WA16 on AC. I was wrong. I don't know why that fix is right, can someone explain me? Thanks. Sorry for bad English. Ouch... Thanks, I understood my problem. I am write int q, w; instead of int q = 0, w = 0; |
| W.A. 2 Help me | Alexsey | 1197. Lonesome Knight | 20 Jul 2014 20:07 | 2 |
#include <iostream> #include <string> using namespace std; int main() { int n; cin>>n; int p[n]; string posi; for(int i=0; i<n; i++) { cin>>posi; if ((posi[0]<'a'||posi[0]>'h')||(posi[1]<'1'||posi[1]>'8')) return 0; if (posi[0]>='c'&&posi[0]<='f') { if (posi[1]>='3'&&posi[1]<='6') p[i]=8; if (posi[1]=='2'||posi[1]=='7') p[i]=6; if (posi[1]=='1'||posi[1]=='0') p[i]=4; } if (posi[0]=='b'||posi[0]=='g') { if (posi[1]>='3'&&posi[1]<='6') p[i]=6; if (posi[1]=='2'||posi[1]=='7') p[i]=4; if (posi[1]=='1'||posi[1]=='8') p[i]=3; } if (posi[0]=='a'||posi[0]=='h') { if (posi[1]>='3'&&posi[1]<='6') p[i]=4; if (posi[1]=='2'||posi[1]=='7') p[i]=3; if (posi[1]=='1'||posi[1]=='8') p[i]=2; } } for (int i=0; i<n; i++) cout<<p[i]<<endl; return 0; } hi,in your code you should consider 'a','h',1,8. for example :if ((posi[0]<='a'||posi[0]>='h')||(posi[1]<='1'||posi[1]>='8')) |
| WA3 | Vladislav | 1881. Long problem statement | 20 Jul 2014 09:16 | 2 |
WA3 Vladislav 22 Mar 2014 21:40 Can not get past this one, all tests in the discussion are passed correctly. Can anyone hint on why test #3 may be failed? Maybe you are adding a 'space' after the last word too. Space should not be counted after the last word. |
| Test7 is correct??? | Korotkevich Piotr | 1156. Two Rounds | 19 Jul 2014 15:43 | 2 |
Help me. I got WA7. Give me some test. I was failing this test because I printed stuff after IMPOSSIBLE (restoring solution even though I found there shouldn't be one). |
| if you have WA #22 | Levan Arabuli [Tbilisi SU] | 1297. Palindrome | 19 Jul 2014 11:59 | 2 |
try this test: 11 answer is 11, not 1 And try tests: 122 221 121 :D |
| wa on test24 who can help me!= = | moonflyer | 1875. Angry Birds | 19 Jul 2014 09:56 | 1 |
wa on test24 who can help me!= = what's the data? |
| Tips for Test 3 and Test 6 | Smile | 1986. Paul’s Salads | 19 Jul 2014 08:34 | 1 |
Only my personal opinions, hope they can help you.☺ If you stuck on WA#3, try the following understanding: The description said "A component of a salad could be a basic ingredient or [another] salad", but Test 3 may contain some cases in which the component of a salad is this salad itself. If you stuck on WA#6, please remember that "Percentages should be output with an absolute or relative error no more than 10−3" |
| #2 | Anvar | 1112. Cover | 19 Jul 2014 07:37 | 1 |
#2 Anvar 19 Jul 2014 07:37 Is there somebody who can give me input data for test #2? |
| For whom, who get WA 21 and more | Gleb_Kazantaev(NNSTU) | 1917. Titan Ruins: Deadly Accuracy | 18 Jul 2014 17:12 | 1 |
Try this test: 5 5 2 2 2 3 4 answer: 0 0 |
| For whom, who get WA 14 | Gleb_Kazantaev(NNSTU) | 1889. Airport Announcements | 18 Jul 2014 12:45 | 1 |
Try this test: 10 e e f f unknown g unknown g d d Answer: Igor is wrong. But my programm gave me "5", because i forgot check v[j] when last="unknown". if (last == "unknown" && v[j] != "unknown") { last = v[j]; if (m[last] == true) f = false; } |
| Salvation | [RISE] Binary Mind [RAU] | 1413. Mars Jumper | 11 Jul 2014 06:34 | 1 |
Salvation [RISE] Binary Mind [RAU] 11 Jul 2014 06:34 Very simple problem, only what you need is to read the directions of buttons more CAREFULLY. Their keyboard is like 0 789 456 123 Edited by author 11.07.2014 06:36 |
| Hint | Dulat_KBTU | 1413. Mars Jumper | 11 Jul 2014 06:33 | 3 |
Hint Dulat_KBTU 9 Feb 2006 18:37 1=(y-1*sqrt(2)/2) (x-1*sqrt(2)/2) 7=(y+1*sqrt(2)/2) (x-1*sqrt(2)/2) 9=(y+1*sqrt(2)/2) (x+1*sqrt(2)/2) 3=(y-1*sqrt(2)/2) (x+1*sqrt(2)/2) 2=(y-1) 8=(y+1) 4=(x-1) 6=(x+1) that's all Edited by author 09.02.2006 18:40 Re: Hint [RISE] Binary Mind [RAU] 11 Jul 2014 06:28 Edited by author 11.07.2014 06:30 Re: Hint [RISE] Binary Mind [RAU] 11 Jul 2014 06:33 Thanks, It was realy easy, but I read the directions of buttons not exactly and that's why got WA :-) |