|
|
вернуться в форумI sumbit this codes and Got WA#1. WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); WriteLn('1 40 700'); WriteLn('2 50'); WriteLn('30 600'); all Get WA#1. How I write output? "-" = " " "---1--40-700" "---2--50" "---30-600" Edited by author 29.10.2006 14:51 WriteLn(1:4, 40:4, 700:4); WriteLn(2:4, 50:4); WriteLn(30:4, 600:4); Sample output in problem statement wil be corrected soon. Isn't it more precisely: ---1--40-700 ---2--50 --30-600 where "-"==" " What can I do in C++ to output as in Pascal without hand-calculating the numbers of blanks? |
|
|