diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2016-10-08 09:56:43 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2016-10-08 09:56:43 +0700 |
commit | 2a7bc10f6c011d19fb3b0e73068f7e1a9c30ace0 (patch) | |
tree | 95190a32ec1c7098494849eea5a5ba6b53289585 /daily/285easy/part2.pas | |
parent | 207cc2ae9893b0cdecd20119b9ede37f73cd4a1e (diff) | |
download | cp-2a7bc10f6c011d19fb3b0e73068f7e1a9c30ace0.tar.gz |
Initial commit
Diffstat (limited to 'daily/285easy/part2.pas')
-rw-r--r-- | daily/285easy/part2.pas | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/daily/285easy/part2.pas b/daily/285easy/part2.pas new file mode 100644 index 0000000..96e58c5 --- /dev/null +++ b/daily/285easy/part2.pas @@ -0,0 +1,22 @@ +var + fi, fo: text; + n, i: cardinal; + + +begin + assign(fi, 'part2.inp'); + assign(fo, 'part2.out'); + reset(fi); + rewrite(fo); + repeat + repeat + read(fi, n); + for i := 1 to n div 255 do + write(fo, 255, ' '); + write(fo, n mod 255, ' ') + until eoln(fi); + writeln(fo) + until eof(fi); + close(fi); + close(fo) +end. |