結果

問題 No.2557 緑以下コンテスト
ユーザー chaemonchaemon
提出日時 2023-12-02 14:30:48
言語 Nim
(2.0.2)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 14,829 bytes
コンパイル時間 3,961 ms
コンパイル使用メモリ 93,952 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-26 16:38:18
合計ジャッジ時間 4,534 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import macros
macro Please(x): untyped = nnkStmtList.newTree()

Please use Nim-ACL
Please use Nim-ACL
Please use Nim-ACL


static:
  when not defined SecondCompile:
    # md5sum: b1178cea7cec8450dd1cc280393a40b4  atcoder.tar.xz

    template getFileName():string = instantiationInfo().filename
    let fn = getFileName()
    block:
      let (output, ex) = gorgeEx("if [ -e ./atcoder ]; then exit 1; else exit 0; fi")
      # doAssert ex == 0, "atcoder directory already exisits"
    discard staticExec("echo \"/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4O//J35dADCdCIqmAHyeLmzPetXzWpgQcDgKgJF+nO8CaeoEXtPO/uExIdXBbEclrskZzujxH9k5KIDrDe/rOdnrww/eeHXAtH/CbVUc5fkIoTJSbpT9g5XplWj2oYEiNj5nD8vdY85pxIbHq8WFA7ZxwM39G3ldMwi4bYeesQ09WxUuTviwcwyykQKRbtFgYblbPSV4O1vMcSUl/t7YHhpBUYBr1wQCGda0Mt5ZFWs7wYW2XKI7gJZNlhtSHzUEwJ5ef/aPC7+ccMwA0zmh4UUY3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P9/ldBXmlIjPjUZFed/QP0BqnMQ2GE9vknCv+/B3fiNhkWNkoB1RyjT1vykrRfHizwvXXQRPNtb1kWA5M3+fPfgTwb9+3EPyMIt4vy1eo6FP5PCBGTJS0ooj98k1r3drgU7xLAOnRoMhxrh01F8WCzCj0xU67572KB6CKzWroisLdCyen+EMxNim9U8RZO5HMbs909NMAPcp4sGGJLebJ9gBYuLf5VnbvIYKURIXukEL3wPWhsXskxfdJoC3eAT2W6ClBqJePc+dYDkNnZI6++MBLt/9hWxBPhOQ9WpEQvJiO3mpwAAAAF6LI8HB0YgPAAGaT4DgAwA4G53KscRn+wIAAAAABFla\" | base64 -d > atcoder.tar.xz && tar -Jxvf atcoder.tar.xz")
    let (output, ex) = gorgeEx("nim cpp -d:release -d:SecondCompile -d:danger --path:./ --opt:speed --multimethods:on --warning[SmallLshouldNotBeUsed]:off --checks:off -o:a.out " & fn)
    discard staticExec("rm -rf ./atcoder");doAssert ex == 0, output;quit(0)


when defined SecondCompile:
  const DO_CHECK = false;const DEBUG = false
else:
  const DO_CHECK = true;const DEBUG = true
const
  USE_DEFAULT_TABLE = true
  DO_TEST = false

# see https://github.com/zer0-star/Nim-ACL/tree/master/src/atcoder/extra/header/chaemon_header.nim
include atcoder/extra/header/chaemon_header


proc solve() =
  let N = nextInt()
  if N < 1200:
    echo "green"
  else:
    echo "difficult"

solve()

0