Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory limits may be not an integer #412

Closed
kmyk opened this issue Apr 7, 2019 · 1 comment · Fixed by #419
Closed

memory limits may be not an integer #412

kmyk opened this issue Apr 7, 2019 · 1 comment · Fixed by #419

Comments

@kmyk
Copy link
Member

kmyk commented Apr 7, 2019

落ちる

https://atcoder.jp/contests/dwacon2018-final-open/tasks

@kmyk
Copy link
Member Author

kmyk commented Apr 22, 2019

$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import onlinejudge
>>> onlinejudge.service.atcoder.AtCoderContest.from_url('https://atcoder.jp/contests/dwacon2018-final-open').list_problems()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/GitHub/online-judge-tools/onlinejudge/service/atcoder.py", line 287, in list_problems
    return [AtCoderProblem._from_table_row(tr) for tr in tbody.find_all('tr')]
  File "/home/user/GitHub/online-judge-tools/onlinejudge/service/atcoder.py", line 287, in <listcomp>
    return [AtCoderProblem._from_table_row(tr) for tr in tbody.find_all('tr')]
  File "/home/user/GitHub/online-judge-tools/onlinejudge/service/atcoder.py", line 529, in _from_table_row
    return _AtCoderProblemContentPartial_from_row(tr).problem
  File "/home/user/GitHub/online-judge-tools/onlinejudge/service/atcoder.py", line 365, in _AtCoderProblemContentPartial_from_row
    memory_limit_byte = int(utils.remove_suffix(tds[3].text, ' MB')) * 1000 * 1000  # TODO: confirm this is MB truly, not MiB
ValueError: invalid literal for int() with base 10: '252.525'

fukatani added a commit that referenced this issue Apr 22, 2019
#412: allow non-integers for memory limits in AtCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant