verify/math/fractions_abc308c_test_.nim

This documentation is automatically generated by online-judge-tools/verification-helper

:warning: verify/math/fractions_abc308c_test_.nim

Depends on

Code

# verification-helper: PROBLEM https://atcoder.jp/contests/abc308/tasks/abc308_c
import algorithm, strutils, sequtils
import cplib/math/fractions

var n = stdin.readLine.parseint
var people: seq[(Fraction[int], int)]
for i in 0..<n:
    var a, b: int
    (a, b) = stdin.readLine.split.map parseInt
    var x = initFraction(a, a+b)
    people.add((x, -i-1))
people.sort(Descending)
echo people.mapit(-it[1]).join(" ")
Traceback (most recent call last):
  File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
    bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page