fork download
  1. program cestini;
  2. { NOTA: si raccomanda di usare questo template anche se non lo si capisce completamente }
  3.  
  4. const
  5. MAXQ = 300000;
  6.  
  7. var
  8. M, N, Q, T, i, test : LongInt;
  9. S, ans : AnsiString;
  10. qtype : Array[0..MAXQ-1] of Char;
  11. a, b : Array[0..MAXQ-1] of LongInt;
  12.  
  13. begin
  14. {
  15.   decommenta le due righe seguenti se vuoi leggere/scrivere da file
  16.   assign(input, 'input.txt'); reset(input);
  17.   assign(output, 'output.txt'); rewrite(output);
  18. }
  19.  
  20. ReadLn(T);
  21. for test:=1 to T do begin
  22. ReadLn();
  23. ReadLn(N, M, Q);
  24.  
  25. ReadLn(S);
  26.  
  27. for i:=0 to Q-1 do
  28. ReadLn(qtype[i], a[i], b[i]);
  29.  
  30. ans := '';
  31.  
  32. { INSERISCI IL TUO CODICE QUI }
  33.  
  34.  
  35. Write('Case #', test, ': ');
  36. WriteLn(ans);
  37. end;
  38.  
  39. end.
  40.  
Success #stdin #stdout 0.01s 5248KB
stdin
Standard input is empty
stdout
Standard output is empty