Skip to content

Commit

Permalink
Merge pull request #203 from kmyk/examples-cleanup
Browse files Browse the repository at this point in the history
docs: Use examples/wip/tle/ directory for TLE solutions
  • Loading branch information
kmyk authored Sep 1, 2021
2 parents ada5b65 + f7b2762 commit 838de02
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ Please check also the [gallery](https://kmyk.github.io/Jikka/gallery).
- AtCoder Beginner Contest 208 [B - Factorial Yen Coin](https://atcoder.jp/contests/abc208/tasks/abc208_b)
- AC with a naive solution using jikka::floordiv, reverse / 愚直解が AC jikka::floordiv, reverse を使う簡単な問題
- submission at 8d1bbacd3f40a60ae8e2447c2a17a8956c7b0218: <https://atcoder.jp/contests/abc208/submissions/24817975>
- :hourglass: TLE `abc134_c.py`
- :hourglass: TLE `wip/tle/abc134_c.py`
- AtCoder Beginner Contest 134 [C - Exception Handling](https://atcoder.jp/contests/abc134/tasks/abc134_c)
- Cumulative sums from both sides / 両側からの累積和
- :hourglass: TLE `abc127_e.py`
- :hourglass: TLE `wip/tle/abc127_e.py`
- AtCoder Beginner Contest 127 [E - Cell Distance](https://atcoder.jp/contests/abc127/tasks/abc127_e)
- :hourglass: TLE `codefestival_2015_final_d.py`
- :hourglass: TLE `wip/tle/codefestival_2015_final_d.py`
- CODE FESTIVAL 2015 決勝 [D - 足ゲーム II](https://atcoder.jp/contests/code-festival-2015-final-open/tasks/codefestival_2015_final_d)
- :hourglass: TLE `m_solutions2019_e.py`
- :hourglass: TLE `wip/tle/m_solutions2019_e.py`
- M-SOLUTIONS Programming Contest [E - Product of Arithmetic Progression](https://atcoder.jp/contests/m-solutions2019/tasks/m_solutions2019_e?lang=ja)
- :hourglass: TLE `yukicoder_1618.py`
- :hourglass: TLE `wip/tle/yukicoder_1618.py`
- yukicoder [No.1618 Convolution?](https://yukicoder.me/problems/no/1618)
- imos 法
- :hourglass: TLE `yukicoder_1649.py`
- :hourglass: TLE `wip/tle/yukicoder_1649.py`
- yukicoder [No.1649 Manhattan Square](https://yukicoder.me/problems/no/1649)
- segment trees with coordinate compression / 座標圧縮してセグメント木
- :hourglass: TLE `wip/point_add_range_sum.py`
- :hourglass: TLE `wip/tle/point_add_range_sum.py`
- Library Checker [Point Add Range Sum](https://judge.yosupo.jp/problem/point_add_range_sum)
- A normal segment tree / 通常のセグメント木
- :warning: CE `wip/dp_w.py`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion scripts/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_local_install_root() -> pathlib.Path:


def find_unused_test_cases() -> List[pathlib.Path]:
scripts = list(pathlib.Path('examples').glob('*.py'))
scripts = list(pathlib.Path('examples').glob('*.py')) + list(pathlib.Path('examples', 'wip', 'tle').glob('*.py'))
errors = list(pathlib.Path('examples', 'errors').glob('*.py'))
unused = []
for path in pathlib.Path('examples', 'data').glob('*'):
Expand Down Expand Up @@ -241,6 +241,10 @@ def main() -> None:
if args.k and args.k not in path.name:
continue
futures[path] = executor.submit(run_integration_test, path, executable=executable)
for path in pathlib.Path('examples', 'wip', 'tle').glob('*.py'):
if args.k and args.k not in path.name:
continue
futures[path] = executor.submit(run_integration_test, path, executable=executable)
for path in pathlib.Path('examples', 'errors').glob('*.py'):
if args.k and args.k not in path.name:
continue
Expand Down
4 changes: 2 additions & 2 deletions scripts/make_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def main() -> None:
executable = get_local_install_root() / 'bin' / 'jikka'
futures: Dict[Tuple[pathlib.Path, str], concurrent.futures.Future] = {}
with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as executor:
for path in pathlib.Path('examples').glob('*.py'):
for path in list(pathlib.Path('examples').glob('*.py')) + list(pathlib.Path('examples', 'wip', 'tle').glob('*.py')):
for target in ('rpython', 'core', 'cxx'):
futures[(path, target)] = executor.submit(transpile_python_script, path, target=target, executable=executable)
for path in pathlib.Path('examples', 'errors').glob('*.py'):
futures[(path, 'error')] = executor.submit(read_transpilation_error, path, executable=executable)

examples = []
for path in sorted(pathlib.Path('examples').glob('*.py')):
for path in sorted(pathlib.Path('examples').glob('*.py')) + sorted(pathlib.Path('examples', 'wip', 'tle').glob('*.py')):
with open(path) as fh:
code = fh.read()
examples.append({
Expand Down

0 comments on commit 838de02

Please sign in to comment.