Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Challenge 7 (N = 4,194,304) #5

Open
hayatoito opened this issue Jul 5, 2016 · 2 comments
Open

Challenge 7 (N = 4,194,304) #5

hayatoito opened this issue Jul 5, 2016 · 2 comments

Comments

@hayatoito
Copy link
Owner

hayatoito commented Jul 5, 2016

Scoreboard に (こっそりと) (Optional) Challenge 7 が追加されていたことに気づいたでしょうか?

N = 2048 ではものたりないという方のために Bonus 問題を用意しました。
入力の input_7.csv はこちらでは用意しないので、みなさんの手元の input_generator.py

CHALLENGE_SIZES = (5, 8, 16, 64, 128, 512, 2048)

の行を

CHALLENGE_SIZES = (5, 8, 16, 64, 128, 512, 2048, 1 << 22)

に変更してから、input_generator.py を実行してください。
input_7.csv が手元に生成されます。ファイルのサイズは 153 MByte です。N は 2の22乗 (4,194,304) です。

@Stephanie1125
Copy link

I got 116.5 Mbyte for the file size of input_7.csv.

@hayatoito
Copy link
Owner Author

hayatoito commented Jul 6, 2016

Ops. It looks that input_generators.py can be run on both Python2 and Python3, which is unintentional :)
If I run input_generators.py with Python2, I got 116.5MBytes.

The output generated by Python2 is:

x,y
214.98279058,762.690363244
1222.03939036,229.562123165
792.696139347,404.54195831
...

The output generated by Python3 is:

x,y
214.98279057984195,762.6903632435094
1222.0393903625825,229.56212316547953
792.6961393471055,404.5419583098643
...

It seems the only difference is their precisions.
Given that, I think you can use input7.csv generated by Python2 as is.
The difference would not matter in practice.
If you have a concern, run input_generators.py with Python3 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants