naskya / testcase-generator Goto Github PK
View Code? Open in Web Editor NEW競技プログラミングのコンテスト中に使うテストケース生成・撃墜ケース発見のためのツール
License: MIT License
競技プログラミングのコンテスト中に使うテストケース生成・撃墜ケース発見のためのツール
License: MIT License
何桁与えられるかが指定されている問題が多く、値を文字列として受け取ってその桁数に依存した処理を行うこともあるため。
入力例
int N [1, 10]
row<int, N> A [0, 10] inc
row<int, N> B [A, 10] inc
---
N
A
B
出力例 (B
が出力されていない)
6
0 1 2 5 7 7
int N [1.5, 10]
や
int N [1, 100]
int M [N * 1.5, N * 2]
等の変数宣言がエラーとなる。
GitHub Actions の実行により判明。手元で 20,000 回ほど試したところ 1 つ落ちるケースが確認された。
生成されたケース:
40 40
8 -4 11 4 3 -13 7 -11 33 -12 5 -8 -13 26 -6 -5 10 -15 -18 1 26 -28 17 -4 -7 27 6 -28 16 -11 4 16 -24 -2 21 7 -6 -6 -21 34
M
の上限に ,
が入っている以下の入力は
int N [1, 100]
int M [1, min(1000, N * N)]
---
N M
以下のエラーとなる。
Error: Failed to evaluate the lower limit of M (= 1 , min ( 1000).
apt upgrade
したときの表示のように、プログレスバーをターミナルの最下部に表示するとよさそう。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.