Hi4ko's blog

By Hi4ko, 12 years ago, translation, In English

Problem

My attempt(WA 25)

x — Radius of truncated circle on height h. I can't understand what is false in my solution :(

Full text and comments »

  • Vote: I like it
  • -4
  • Vote: I do not like it

By Hi4ko, 13 years ago, translation, In English

Hello

Problem

I've already got some help. Thanks :)

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Hi4ko, 13 years ago, translation, In English

Problem #1036 I've already got some help, Thanks :)

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By Hi4ko, 13 years ago, translation, In English

I think this topic is quite important because it's a popular problem.

"You scanned pages, made them into one .pdf file and size of this file is 300 mb. But it has to be not more than 30-40 mb". :) 
I offer you to discuss compresion methons only for GNU/Linux systems, particularly because of my egoism :) (my OS is Linux Mint 10)
That's the only method I know how to compress:

1. I installed Ghostscript and pdftk (sudo apt-get install ghostscript pdftk);
2. Converted my .pdf (240 mb)  in .ps file 
(pdf2ps file1.pdf file2.ps) . .ps'll have more size, than your .pdf(I got 400mb).
3. Then I  converted this  .ps file again to  .pdf(ps2pdf file2.ps file3.pdf)
To sum up, I got  9mb .pdf file with the same quality as 240mb's.

If somebody can expain, how can it be or knows any other methods of compression, write in comments) 

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

By Hi4ko, 13 years ago, translation, In English

I think the best C++ IDE on Linux is QtCreator. It looks cute and only in this IDE I can debug STL containers and algos without going to their .h files :D

But sometimes it happens(but not sometimes, often), that you can't cin of scanf in this IDE(or debugger shows you an error ><). You can solve these problems by making these easy steps :)

1. If cin of scanf doesn't work

Tools -> options -> Environment -> System-> Terminal(change to xterm -e)

External Terminal : change to xterm -e -geom %Wx%H+%x+%y -e vi %f +%l +"normal %c|"

In left panel(Projects -> Run settings -> click on "Run in Terminal"

2. If debugger shows you an error, type in Terminal:
sudo echo 0 > /proc/sys/kernel/yama/ptrace_scope

Good luck :)

Full text and comments »

  • Vote: I like it
  • +19
  • Vote: I do not like it

By Hi4ko, 13 years ago, translation, In English

http://acm.timus.ru/problem.aspx?space=1&num=1353

my code has WA #11 

How to solve it correctly with DP?

Or give me a little hint, please)

Full text and comments »

  • Vote: I like it
  • -3
  • Vote: I do not like it