ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1307. Archiver

Hints for C programmers
Posted by WA #30 22 Oct 2005 02:46
Hints:
1. You CAN declarate string as
  /* 200000 'a' leters in quotes */
  char A[200005] = "aaaa...a";

You may not split it on strings with 65536 bytes,
  and print 200000 simbols in one line!!!

2. If you use 7-bits coding (lazy...) you can't
  use only 64 simbols, but if you compress data
  by any simple algo, you may use only six or
  seven bits per simbol, and keep first bit
  equal 1. Such way you will have all
  simbols in range [128..256], and no system
  simbols like 0, 26, 9, 10, 13 and so on.

PS: Now I really satisfied: AC 0.015sec 566KB

PPS: I don't no anything about declarations in Pascal..