This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| きょうぷろ 競プロ 名詞 | |
| らんてす ランテス 名詞 | |
| ぐちょくかい 愚直解 名詞 | |
| せぐき セグ木 名詞 | |
| せぐめんとき セグメント木 名詞 | |
| ちえんせぐき 遅延セグ木 名詞 | |
| ふぇにっくき フェニック木 名詞 | |
| にぶたん にぶたん 名詞 | |
| さんぶんたんさく 三分探索 名詞 | |
| めぐるしき めぐる式 名詞 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Nim のインタラクティブ問題 | |
| 整数 N と整数列 (A_1, ..., A_N) が与えられます。 | |
| あなたはジャッジシステムと次のゲームで対戦します。 | |
| > 石の山が N 個あり、i番目の山には A_i 個の山が積まれています | |
| > 先行から交互の以下の操作を繰り返します | |
| > * 空でない山を1つ選び、その山から1個以上の好きな個数の石を取り除く | |
| あなたは先行か後攻の一方を選んでください。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import time | |
| import datetime | |
| from collections import deque | |
| import subprocess | |
| class QueueWithPeek(deque): |