Show all threads Hide all threads Show all messages Hide all messages |
Why do i always got CE ??? | Александр | 1636. Penalty Time | 20 Sep 2022 22:37 | 2 |
#include <stdio.h> int main() { int t1,t2,n; int c=0; scanf("%d %d", &t1, &t2); for (int i=0; i<=9; i++) { scanf("%d", &n); c+=(n*20); } t2-=c; if (t2<t1) { printf("Dirty debug :("); } else { printf("No chance."); } } Если я не ошибаюсь, вам стоит подключить пространство имён. using namespace std; |
WA#4 | Zharenkov_ssau | 1636. Penalty Time | 7 Apr 2018 12:52 | 6 |
WA#4 Zharenkov_ssau 9 Jan 2009 23:04 for example: 10 10 0 0 0 0 0 0 0 0 0 0 in this test wright answer is "No chance.", but not "Dirty debug :(" 10 30 1 0 0 0 0 0 0 0 0 0 True answer No chance. (При равенстве штрафного времени команды сортируются по алфавиту, а значит, команда ZZZ в этом случае всё равно оказалась бы на втором месте. ) It is test 4. Re: WA#4 Minos Skistonrak 7 Apr 2018 12:52 Also, Test 5 is related with the decision of 4 test. |
Where is the error ?? 9 test fails . Pascal . Где ошибка?? 9 тест не проходит. Паскаль. | Andriy | 1636. Penalty Time | 26 Mar 2016 02:41 | 3 |
var t1,t2,i,k,q:integer; a:array [1..10000000] of integer; begin read(t1,t2); for i:=1 to 10 do read(a[i]); for i:=1 to 10 do begin if a[i]>0 then k:=k+a[i]; end; if t1<t2 then begin q:=(k*20)+t1; if q<=t2 then write('No chance.') else if q>t2 then write('Dirty debug :('); end else if t1>=t2 then begin write('No chance.'); end; end. Edited by author 01.11.2014 13:12 Edited by author 01.11.2014 13:12 Why SUCH BIG MASSIVE if 10 elements will be used What is "k" initial value? |
Hahaha | IlushaMax | 1636. Penalty Time | 25 Mar 2016 21:02 | 1 |
Hahaha IlushaMax 25 Mar 2016 21:02 |
WA8 Why? | Vincent Kotwizkiy [SESC] | 1636. Penalty Time | 15 Jan 2016 21:23 | 2 |
WA8 Why? Vincent Kotwizkiy [SESC] 31 Mar 2013 04:40 Can anybody give me test 8? Code on python2: a, b = map(int, raw_input().split(' ')) k = 0 c = map(int, raw_input().split(' ')) for x in xrange(1,10): k = k+c[x]*20 if b-k>a: print('No chance.') elif b-k<a: print('Dirty debug :(') elif b-k==a: print('No chance.') xrange(1, 10) only takes array elements 1-9. You need to use xrange(0, 10) to get elements 0-9 |
where is mistake? SOS | Dior | 1636. Penalty Time | 23 Jun 2014 21:05 | 1 |
var m:array [1..10] of integer; q,z,i,s:integer; begin read(q); write(' '); read(z); readln(m[1]); s:=m[1]; for i:=2 to 10 do begin write(' '); read(m[i]); s:=s+m[i]; end; s:=s*20; if z-s>=q then write('No chance.') else write('Dirty debug :('); end. |
"Условие не пойму не как плиз объясните на русском! Я читал английский слова понятны но все же не пойму!" | kami_botanik | 1636. Penalty Time | 23 Jun 2014 20:53 | 2 |
"Насколько я понял чем меньше сумма штрафных минут которые прибавляются по 20 за попытку, тем выигрышнее позиция, но почему в примере у комманды ЗЗЗ 719 минут а еще и 21 попыток и при этом ответ dirty debug :(" Please explain! 21*20=420 719-420=299 299<300 я так понял |
Wrong answer in Java 1.7 test 8 | Axmadjon | 1636. Penalty Time | 1 May 2014 17:44 | 1 |
import java.util.Scanner; public class _1636 { public static void main(String args[]) { Scanner s = new Scanner(System.in); int n, sum = 0; int a, b; a = s.nextInt(); b = s.nextInt(); for (int i = 1; i < 10; i++) { n = s.nextInt(); sum = sum + (n * 20); } a = a + sum; if (b < a) { System.out.println("Dirty debug :("); } else { System.out.println("No chance."); } } } |
wrong task | Kholmogorova | 1636. Penalty Time | 2 Mar 2012 17:24 | 1 |
please, change the task! firstly, the first number is time of ZZZ.secondly, if the commands have the same time, the right aswer is 'no chance'. |
подскажите что за тест номер 2? | Vova | 1636. Penalty Time | 18 Aug 2011 17:20 | 3 |
Test 2 is a second test from the problem statement. |
Условие | Kruglyi Max | 1636. Penalty Time | 4 Aug 2011 04:05 | 4 |
Условие Kruglyi Max 11 Oct 2008 13:57 Обьясните подробней как штрафное время влияет на проигрыш/победу команды. Read the problem statements carefully In the very best case, the team can get the penalty time as less as many penalty submissions it did (each one adds 20 minutes). "Dirty debug :(" message means that if the team had no penalty submissions at all, it would be the first rated. Another words, it would have the penalty time less than "QXX" has at the moment. Good luck! SFMBE |
What is wrong with my code ? | Sepehr Mousavi | 1636. Penalty Time | 20 Nov 2009 04:08 | 2 |
First, i sent my solution in Pascal and i got WA2 and then i wrote it in C++ and i got Accepted. I want to know my mistake in my Pascal solution. Here's my code in Pascal : [code deleted] Edited by moderator 17.11.2019 18:35 readln(n); You should read, not readln. |
What is wrong with this code ? | Zmija | 1636. Penalty Time | 27 Oct 2008 15:43 | 2 |
[code deleted] Edited by moderator 17.11.2019 18:35 you forgot to put space after word "debug" change printf("Dirty debug:("); to printf("Dirty debug :("); and u'll get AC Be attentive please... Edited by author 27.10.2008 15:44 |
I can't ubderstand this task, pls help | Bobur | 1636. Penalty Time | 11 Oct 2008 19:39 | 2 |
Its easy. First line shows the total time taken by each team. Second line shows the number of failed test runs. If it passes first time, its 0 otherwise it shows the number of failed runs. Each failed run costs 20 min extra time. You should find if second team would win if they had no failed runs. |