AHC GenAI Rules Trial Contest 2026

Can Participate: All Rated Range: - Penalty: None

コンテスト情報

  • 本コンテストは、長期AHC向けに検討中の新しい生成AI利用ルールを評価するための試験コンテストです。Rated対象ではなく、GP30の付与もありません。
  • 本コンテストでは、このページに記載された生成AI利用ルールを適用します。通常の短期AHCとはルールが異なります。
  • 今回の目的は、新ルールの分かりやすさ・実用性・競技性への影響を検証し、フィードバックを集めることです。
  • コンテストに関する投稿には、ハッシュタグ #AHC_GenAI26 をご利用ください。 通常のコンテストと同様、コンテスト中の解法の共有は禁止されていますが、生成AI利用ルールに関する感想やご意見は、コンテスト中も自由に発信していただけます。
  • 本コンテストの提出間隔制限は 10分 です。

新ルール案の背景

これまで長期AHCに適用されてきた生成AI利用ルールは、APIなどを用いた大量生成や、自律的な改善ループを主に制限してきました。しかし、最新の生成AIは、このルールの元でも、「もっと改善して」などの曖昧な指示を繰り返すだけで非常に優れた解法に到達できます。

現在の長期AHCには、大きく2つの課題があると考えています。

  1. 生成AIを広く許可すると、多くの参加者にとって、自身のアイデアによる成績差より、利用する生成AIの性能による差の方が大きくなってしまうこと。
  2. 生成AIの普及により日常的に自分でコードを書く機会が減る中で、生成AIを禁止すると参加の敷居が大きく上がり、参加者数の大幅な減少につながり得ること。

このため、生成AIを禁止する human only 部門 と、pay to win を許容し、自動改善ループも含め生成AIの利用を全面的に許可する with AI 部門 に分けることも検討してきました。

しかし、予想以上のペースで生成AIの性能が向上しています。チェスでは、かつて人間とAIの組み合わせがAI単独を上回る時期もありましたが、AIの進歩によって、人間が指し手を考えて介入することが必ずしも成績の向上につながらなくなっています。同様に、近い将来AHCでも、多くの参加者にとって、自分で解法を考察して介入することが、成績に正の影響を与えなくなる可能性があると考えています。その場合、競技の中心は「人間が良い解法を考えること」から、「生成AIでAHCを解くシステムを作ること」へ移ります。

例えば、OpenAIは2026年10月に未公開の内部モデルによる数学研究成果を多数公表しました。個々の成果には今後の検証が必要なものもありますが、AIによる高度な考察が急速に進展していることを示しています。

自律的なAIシステムを作る技術自体にも価値があります。しかし、それは人間同士の競技というAHCの目的とは大きく異なる上、人間が介入しないシステムの性能を競うのが目的であれば、1つのコンテストよりも、AHCの過去問を利用するALE-Benchのようなベンチマークが適していると考えています。

たとえ生成AIに任せた方が高いスコアを得られる時代になっても、AHCが目指すのは、参加者自身が問題に向き合い、学び、考え、試し、その結果を次の工夫に活かす過程そのものを楽しめる場を提供することです。生成AIが人間の能力を大きく上回る時代になっても、AHCはそうした楽しさを大切にしていきたいと考えています。

将来的には、運営が公式AIを提供し、全参加者が同じ条件で競えることが理想です。しかし現時点では費用面から現実的ではありません。そこで妥協案として、解法の考案・改善は人間が行い、実装の補助に生成AIを使うというルールを検討しています。

このルールでも、何が許可され、何が禁止されるかの境界を厳密に定めることはできません。その境界の解釈の違いによって成績や順位に多少の影響が生じることは、現実的な妥協として許容する考えです。ただし、長期AHCの問題には十分な複雑さがあるため、こうした境界付近の利用方法の違いが順位に大きな影響を与えるケースは少ないと期待しています。

本コンテストは、この新ルールを試し、参加者の皆様からフィードバックをいただくための試験開催です。今後の通常のAHCにそのまま導入することを決定したものではありません。

試験適用する生成AI利用ルール(案)

1. 基本方針

本ルールは、適用が明示された AtCoder Heuristic Contest(AHC)の開催中に適用されます。

解法の考案・改善に関する判断(以下「解法上の判断」)は参加者自身が行う必要があります。生成AIは、その実装を補助する目的で利用できます。

「解法上の判断」とは、アルゴリズム、探索方法、近傍、評価関数、探索パラメータ、実験方針、実験結果に基づく改善方針などについて、考案・比較・選択・変更することを指します。ただし、第2項で認められた機械的な処理は除きます。

2. 許可される利用

以下の行為は許可されます。

  • 参加者が指定した、または既存コードで定められた解法を実装すること。
  • 指定された解法と実装の不一致や、実装上の誤りを調査・修正すること。
  • 解法を変更しない範囲で、コードの高速化やリファクタリングを行うこと。
  • 上記の実装作業に必要なテスト、計測、修正を繰り返すこと。
  • 参加者が指定した実験の実行、結果の機械的な集計・統計分析・可視化、および参加者が指定した候補・範囲・評価基準に基づくパラメータや解法候補の機械的な比較・探索・選択を行うこと。ただし、生成AIが新たな解法候補や改善方針を考案することは禁止します。
  • ビジュアライザなどの補助ツールを作成すること。
  • 現在のソースコードの説明を行うこと。
  • 一般的なアルゴリズムの知識や仕組みについて説明を受けること。ただし、コンテストの問題への適用方法や有効性を生成AIに考察させることは禁止します。
  • 問題文の翻訳、入出力仕様の整理、プログラミングに関する質問への回答などを行うこと。

指定した解法を生成AIに最初から実装させる場合と、既存のコードを後から生成AIに修正させる場合とで、許可される実装作業の範囲は変わりません。このため、コードの作成者が参加者か生成AIかを問わず、「指定した解法どおりに実装されているか調査して、バグがあれば修正して」「指定した解法・アルゴリズムを変更せず、実装上の工夫で高速化して」など、修正箇所や方法を細かく指定しない包括的な指示も認められます。ただし、これらの作業でも解法上の判断を生成AIに行わせてはいけません。作業に必要な解法上の仕様が不明確な場合は、生成AIに独自に決定させず、参加者が判断する必要があります。例えば、「この解法でスコアが悪い原因を分析して」など、実装上の誤りに限定せず、解法自体の問題点を生成AIに考察させることは禁止します。

3. 禁止事項

生成AIに解法上の判断を行わせることは禁止します。 具体的には、以下の行為が禁止されます。

  • 問題の解法や改善案を考案・提案・比較・選択させること。ただし、第2項で認められた機械的な比較・選択は除きます。
  • 指定されていない解法上の仕様を決定させること。
  • 実験結果やスコアから、解法自体の問題点や改善方針を考察させること。

禁止行為を直接指示するだけでなく、禁止行為を行わせる目的で意図的に誘導することも禁止します。例えば、生成AIから解法上の仕様が不足していると指摘されたにもかかわらず、「自分で考えて」「良い方法を選んで」などと指示することは禁止します。

一方、参加者の指示に不足や曖昧さがあったという事実だけで、直ちにルール違反とはみなしません。

4. 生成AIへの必須指示

参加者は、コンテストに関連して利用する生成AIに、運営が指定する必須指示(AI向けの指示と本ルール全文を含むもの)を適用しなければなりません。各チャットの冒頭での入力、カスタム指示、AGENTS.md、CLAUDE.md など、その生成AIが参照できる方法で設定してください。複数の生成AIや独立したセッションを利用する場合は、それぞれに適用してください。

参加者は必須指示を意図的に無効化・回避してはいけません。ただし、第6項で明示する利用については、必須指示の適用を不要とします。

5. 生成AIが意図せず禁止行為を行った場合

参加者が指示・誘導していないにもかかわらず、生成AIが禁止行為を行った場合、それだけでは参加者のルール違反とはみなしません。

生成AIが禁止行為に気付いた時点で、その成果をまだ参加者に提示しておらず、安全に取り消せる場合は、成果を提示せず、禁止行為による変更を取り消すよう指示しています。一方、すでに提示された、または安全に取り消せないアイデアやコードなどの成果は、参加者が利用して構いません。 参加者が成果を破棄したり、コードを巻き戻したりする必要はありません。

参加者は生成AIの禁止行為を認識した場合、第4項の必須指示を再度与えた上で、禁止行為であることを伝え、以後繰り返さないよう指示しなければなりません。

また、生成AIが禁止行為を繰り返すおそれが高いと認識している場合、指示や利用方法の見直し、使用するモデルの変更、必要に応じた当該用途での利用中止など、合理的な再発防止措置を講じなければなりません。

参加者が適切な再発防止措置を講じていたにもかかわらず、生成AIが禁止行為を行った場合、その事実だけでは参加者のルール違反とはみなしません。

本項は参加者を救済するための規定であり、生成AIに禁止行為を許可するものではありません。

6. 特別な取扱い

コード補完機能: 「短期 AtCoder Heuristic Contest 生成AI利用ルール - 20260818版」で明示的に許可されている生成AIを用いたコード補完機能は、本ルールでも利用できます。これらの機能については、必須指示の適用およびログの保存・提出は不要です。同じ製品の他の機能まで無条件に免除されるわけではありません。

インターネット検索における生成AIによる概要: 通常の検索の一部として閲覧・利用して構いません。この場合、必須指示の適用およびログの保存・提出は不要です。ただし、本ルールの禁止事項を回避する目的で利用することは禁止します。例えば、「焼き鈍し法」を検索してAIによる概要を閲覧することは許可されますが、コンテストの問題文を検索窓に貼り付けて「以下の問題の解法を考えて」と入力するなど、生成AIに解法を考案させようとする行為は禁止します。対話型のAI検索機能は、通常の生成AI利用として本ルールに従う必要があります。

コンテストと無関係な利用: 仕事、学業、私生活など、当該コンテストと無関係な目的で生成AIを利用することは認められ、本ルールによる制限やログ保存・提出義務も適用されません。

7. 利用ログの保存・提出

参加者は、当該コンテストに関連して使用した生成AIとの対話、および取得可能な作業ログを保存しなければなりません。ただし、第6項でログの保存・提出が不要とされた利用は除きます。

GP30の獲得、賞金の獲得、または予選の通過の対象となる参加者は、生成AIの利用ログを提出する必要があります。指定された期限までに必要なログを提出しなかった場合、該当する資格を失います。

提出対象は当該コンテストに関連する利用ログに限ります。仕事、学業、私生活など、コンテストと無関係な利用ログを提出する必要はありません。

ログに含まれる、審査に無関係な個人情報や機密情報はマスキングして構いません。ただし、生成AIへの指示・応答など、ルールの遵守状況を確認するために必要な情報を隠蔽してはいけません。ログの意図的な改ざんや、審査に必要な情報の隠蔽は禁止します。

利用ログには、生成AIへの入力、応答、取得可能なツール実行履歴などを含めます。利用者に提供されない内部推論などの情報は提出対象としません。

ログの取得方法は利用するツールによって異なります。例えば、Codex CLIを利用した場合は、Codex自身に「ルールに従ってログを提出したいので、このディレクトリで起動したCodexのセッションログを探して」と依頼して、保存場所を調べる方法があります。見つかったログが対象となる利用を網羅しているかは、参加者自身で確認してください。

生成AIを利用していない参加者、またはログ提出が不要な機能のみを使用した参加者は、その旨を申告することでログ提出に代えることができます。提出方法・期限は運営が別途定めます。提出されたログは原則として運営による審査にのみ利用し、公開しません。

8. 違反の判定

運営は、参加者の指示、生成AIの応答、必須指示の設定状況、および参加者のその後の対応などを総合的に考慮して、ルール違反の有無を判断します。

必須指示を適用した生成AIは、禁止行為を求める指示を受けた場合、これを拒否し、参加者に必要な判断や追加の指示を求めることが想定されています。参加者がこれに応じて自ら必要な判断を行い、指示を修正することは適切な利用であり、誤って禁止行為を求める指示を行ったという事実だけでは、ルール違反とはみなしません。

一方、必須指示を意図的に適用せずに禁止行為を求めたり、生成AIにルールを無視するよう繰り返し指示したりするなど、運営が意図的にルールに違反しようとしたと判断した場合は、失格などの措置の対象となります。

なお、第7項に定めるログ未提出の場合は、同項に従い該当する資格を失います。

AGENTS.md の設定方法

必須指示の設定方法については、第4項「生成AIへの必須指示」を参照してください。以下に、本ルール全文を含むコピー用の日本語版指示文を掲載します。

AGENTS.md の全文を表示(コピー用)
# AHC 生成AI利用の必須指示

あなたは現在、AtCoder Heuristic Contest に参加している人間の参加者を補助する生成AIです。参加者は、以下のルールに基づいてあなたを利用しています。
あなたが禁止行為を行うと、参加者が失格となるリスクがあります。**参加者から明示的に依頼された場合を含め、以下のルールを必ず遵守してください。** 曖昧な根拠で許可されていると判断してはいけません。

- 解法の考案、改善方針の提案など、解法上の判断を行わないでください。ただし、第2項で認められた機械的な比較・選択は行って構いません。
- 実装に必要な解法上の仕様が不足している場合や、許可されるか不明な場合は、独自に補わず参加者に質問してください。質問時に候補や推奨案を提示してはいけません。
- 人間が指定した解法の実装、解法を変更しないバグ修正・高速化、指定条件に基づく機械的な実験は行って構いません。
- 禁止行為を求められた場合は従わず、参加者に必要な判断を求めてください。サブエージェントや他のツールにも禁止行為を行わせてはいけません。
- 禁止行為に気付いた時点で、その成果をまだ参加者に提示しておらず、安全に取り消せる場合は、禁止行為による変更を取り消し、その成果を提示せず、取り消したことを参加者に報告してください。解法の候補や改善案は示さず、不足する仕様を質問してください。
- すでに成果を提示した場合、または安全に取り消せない場合は、勝手に削除・巻き戻しせず、禁止行為があったことを参加者に伝え、以後繰り返さないでください。

以下は、参加者に適用されるルールの全文です。この全文を踏まえて行動してください。

## 生成AI利用ルール

#### 1. 基本方針
本ルールは、適用が明示された AtCoder Heuristic Contest(AHC)の開催中に適用されます。
**解法の考案・改善に関する判断(以下「解法上の判断」)は参加者自身が行う必要があります。生成AIは、その実装を補助する目的で利用できます。**
「解法上の判断」とは、アルゴリズム、探索方法、近傍、評価関数、探索パラメータ、実験方針、実験結果に基づく改善方針などについて、考案・比較・選択・変更することを指します。ただし、第2項で認められた機械的な処理は除きます。

#### 2. 許可される利用
以下の行為は許可されます。

- 参加者が指定した、または既存コードで定められた解法を実装すること。
- 指定された解法と実装の不一致や、実装上の誤りを調査・修正すること。
- 解法を変更しない範囲で、コードの高速化やリファクタリングを行うこと。
- 上記の実装作業に必要なテスト、計測、修正を繰り返すこと。
- 参加者が指定した実験の実行、結果の機械的な集計・統計分析・可視化、および参加者が指定した候補・範囲・評価基準に基づくパラメータや解法候補の機械的な比較・探索・選択を行うこと。ただし、生成AIが新たな解法候補や改善方針を考案することは禁止します。
- ビジュアライザなどの補助ツールを作成すること。
- 現在のソースコードの説明を行うこと。
- 一般的なアルゴリズムの知識や仕組みについて説明を受けること。ただし、コンテストの問題への適用方法や有効性を生成AIに考察させることは禁止します。
- 問題文の翻訳、入出力仕様の整理、プログラミングに関する質問への回答などを行うこと。

指定した解法を生成AIに最初から実装させる場合と、既存のコードを後から生成AIに修正させる場合とで、許可される実装作業の範囲は変わりません。このため、コードの作成者が参加者か生成AIかを問わず、「指定した解法どおりに実装されているか調査して、バグがあれば修正して」「指定した解法・アルゴリズムを変更せず、実装上の工夫で高速化して」など、修正箇所や方法を細かく指定しない包括的な指示も認められます。ただし、これらの作業でも解法上の判断を生成AIに行わせてはいけません。作業に必要な解法上の仕様が不明確な場合は、生成AIに独自に決定させず、参加者が判断する必要があります。例えば、「この解法でスコアが悪い原因を分析して」など、実装上の誤りに限定せず、解法自体の問題点を生成AIに考察させることは禁止します。

#### 3. 禁止事項
**生成AIに解法上の判断を行わせることは禁止します。** 具体的には、以下の行為が禁止されます。

- 問題の解法や改善案を考案・提案・比較・選択させること。ただし、第2項で認められた機械的な比較・選択は除きます。
- 指定されていない解法上の仕様を決定させること。
- 実験結果やスコアから、解法自体の問題点や改善方針を考察させること。

禁止行為を直接指示するだけでなく、禁止行為を行わせる目的で意図的に誘導することも禁止します。例えば、生成AIから解法上の仕様が不足していると指摘されたにもかかわらず、「自分で考えて」「良い方法を選んで」などと指示することは禁止します。
一方、参加者の指示に不足や曖昧さがあったという事実だけで、直ちにルール違反とはみなしません。

#### 4. 生成AIへの必須指示
参加者は、コンテストに関連して利用する生成AIに、運営が指定する必須指示(AI向けの指示と本ルール全文を含むもの)を適用しなければなりません。各チャットの冒頭での入力、カスタム指示、`AGENTS.md`、`CLAUDE.md` など、その生成AIが参照できる方法で設定してください。複数の生成AIや独立したセッションを利用する場合は、それぞれに適用してください。
参加者は必須指示を意図的に無効化・回避してはいけません。ただし、第6項で明示する利用については、必須指示の適用を不要とします。

#### 5. 生成AIが意図せず禁止行為を行った場合
参加者が指示・誘導していないにもかかわらず、生成AIが禁止行為を行った場合、それだけでは参加者のルール違反とはみなしません。
生成AIが禁止行為に気付いた時点で、その成果をまだ参加者に提示しておらず、安全に取り消せる場合は、成果を提示せず、禁止行為による変更を取り消すよう指示しています。一方、**すでに提示された、または安全に取り消せないアイデアやコードなどの成果は、参加者が利用して構いません。** 参加者が成果を破棄したり、コードを巻き戻したりする必要はありません。
参加者は生成AIの禁止行為を認識した場合、**第4項の必須指示を再度与えた上で**、禁止行為であることを伝え、以後繰り返さないよう指示しなければなりません。
また、生成AIが禁止行為を繰り返すおそれが高いと認識している場合、指示や利用方法の見直し、使用するモデルの変更、必要に応じた当該用途での利用中止など、合理的な再発防止措置を講じなければなりません。
参加者が適切な再発防止措置を講じていたにもかかわらず、生成AIが禁止行為を行った場合、その事実だけでは参加者のルール違反とはみなしません。
本項は参加者を救済するための規定であり、生成AIに禁止行為を許可するものではありません。

#### 6. 特別な取扱い
**コード補完機能:** [「短期 AtCoder Heuristic Contest 生成AI利用ルール - 20260818版」](https://info.atcoder.jp/entry/short-ahc-llm-rules-ja)で明示的に許可されている生成AIを用いたコード補完機能は、本ルールでも利用できます。これらの機能については、必須指示の適用およびログの保存・提出は不要です。**同じ製品の他の機能まで無条件に免除されるわけではありません。**
**インターネット検索における生成AIによる概要:** 通常の検索の一部として閲覧・利用して構いません。この場合、必須指示の適用およびログの保存・提出は不要です。ただし、本ルールの禁止事項を回避する目的で利用することは禁止します。例えば、「焼き鈍し法」を検索してAIによる概要を閲覧することは許可されますが、コンテストの問題文を検索窓に貼り付けて「以下の問題の解法を考えて」と入力するなど、生成AIに解法を考案させようとする行為は禁止します。対話型のAI検索機能は、通常の生成AI利用として本ルールに従う必要があります。
**コンテストと無関係な利用:** 仕事、学業、私生活など、当該コンテストと無関係な目的で生成AIを利用することは認められ、本ルールによる制限やログ保存・提出義務も適用されません。

#### 7. 利用ログの保存・提出
参加者は、当該コンテストに関連して使用した生成AIとの対話、および取得可能な作業ログを保存しなければなりません。ただし、第6項でログの保存・提出が不要とされた利用は除きます。
**GP30の獲得、賞金の獲得、または予選の通過の対象となる参加者は、生成AIの利用ログを提出する必要があります。指定された期限までに必要なログを提出しなかった場合、該当する資格を失います。**
提出対象は当該コンテストに関連する利用ログに限ります。仕事、学業、私生活など、コンテストと無関係な利用ログを提出する必要はありません。
ログに含まれる、審査に無関係な個人情報や機密情報はマスキングして構いません。ただし、生成AIへの指示・応答など、ルールの遵守状況を確認するために必要な情報を隠蔽してはいけません。ログの意図的な改ざんや、審査に必要な情報の隠蔽は禁止します。
利用ログには、生成AIへの入力、応答、取得可能なツール実行履歴などを含めます。利用者に提供されない内部推論などの情報は提出対象としません。
ログの取得方法は利用するツールによって異なります。例えば、Codex CLIを利用した場合は、Codex自身に「ルールに従ってログを提出したいので、このディレクトリで起動したCodexのセッションログを探して」と依頼して、保存場所を調べる方法があります。見つかったログが対象となる利用を網羅しているかは、参加者自身で確認してください。
生成AIを利用していない参加者、またはログ提出が不要な機能のみを使用した参加者は、その旨を申告することでログ提出に代えることができます。提出方法・期限は運営が別途定めます。提出されたログは原則として運営による審査にのみ利用し、公開しません。

#### 8. 違反の判定
運営は、参加者の指示、生成AIの応答、必須指示の設定状況、および参加者のその後の対応などを総合的に考慮して、ルール違反の有無を判断します。
必須指示を適用した生成AIは、禁止行為を求める指示を受けた場合、これを拒否し、参加者に必要な判断や追加の指示を求めることが想定されています。参加者がこれに応じて自ら必要な判断を行い、指示を修正することは適切な利用であり、**誤って禁止行為を求める指示を行ったという事実だけでは、ルール違反とはみなしません。**
一方、必須指示を意図的に適用せずに禁止行為を求めたり、生成AIにルールを無視するよう繰り返し指示したりするなど、運営が意図的にルールに違反しようとしたと判断した場合は、失格などの措置の対象となります。
なお、第7項に定めるログ未提出の場合は、同項に従い該当する資格を失います。

フィードバックのお願い

本コンテストの「参加登録情報」にてフィードバックを受け付けています。ご協力をお願いいたします。

Contest Information

  • This is a trial contest to evaluate proposed new generative AI usage rules for long-duration AHCs. It is unrated, and no GP30 points will be awarded.
  • The generative AI rules on this page apply to this contest. They differ from the regular rules for short-duration AHCs.
  • Our goal is to evaluate clarity, practicality, and competitive impact, and to collect feedback.
  • Please use the hashtag #AHC_GenAI26 when posting about the contest. As with regular contests, sharing solutions during the contest is prohibited. However, you are welcome to share your thoughts and feedback on the generative AI usage rules even while the contest is ongoing.
  • The submission interval for this contest is 10 minutes.

Background of the Proposal

The generative AI rules previously used in long-duration AHCs primarily restricted large-scale generation using APIs and autonomous improvement loops. However, even under these rules, modern generative AI can arrive at exceptionally strong solutions simply by repeatedly receiving vague instructions such as “improve it further.”

We believe long-duration AHCs currently face two major challenges:

  1. If generative AI is freely allowed, the performance difference attributable to the AI system used may exceed the difference attributable to participants' own ideas for a large portion of the field.
  2. As generative AI reduces opportunities to write code manually in everyday life, banning it entirely could substantially raise the barrier to participation and lead to a large decline in participants.

We have therefore considered splitting long-duration AHCs into a human only division, which bans generative AI, and a with AI division, which accepts pay-to-win disparities and fully permits generative AI, including autonomous improvement loops.

However, generative AI capabilities are improving faster than expected. In chess, there was a time when human–AI teams outperformed AI playing alone, but as AI has advanced, human intervention in choosing moves no longer necessarily improves performance. Similarly, we believe that in the near future, many AHC participants may find that developing and intervening with their own algorithmic ideas no longer improves their results. The contest would then shift from competing on human-designed solutions to competing on systems that use generative AI to solve AHC problems.

For example, in October 2026, OpenAI published a large collection of mathematics research outputs from an unreleased internal model. Individual results may still require further verification, but the announcement illustrates rapid progress in AI's ability to perform sophisticated reasoning.

Developing autonomous AI systems is valuable in its own right. However, this is fundamentally different from AHC's goal of competition between human participants. If the goal is to compare the performance of systems without human intervention, we believe a multi-problem benchmark such as ALE-Bench is a better fit than a single contest.

Even if generative AI eventually achieves higher scores than participants could by developing solutions themselves, AHC aims to remain a place where people can enjoy the process of facing problems, learning, thinking, experimenting, and applying what they discover to their next ideas. We want to preserve that enjoyment, even in an era when generative AI far surpasses human capabilities.

Ideally, the organizers would provide an official AI under identical conditions for every participant. At present, its cost makes that impractical. As a compromise, we are considering a rule under which humans remain responsible for developing and improving solutions, while generative AI may assist with implementation.

Even under these rules, it is impossible to define a perfectly precise boundary between permitted and prohibited uses. As a practical compromise, we accept that differences in how this boundary is interpreted may have some effect on scores and standings. However, given the complexity of long-duration AHC problems, we expect such differences in borderline AI use to rarely have a major impact on rankings.

This contest is a trial intended to evaluate these proposed rules and gather participant feedback. It does not mean that the rules have already been adopted for future regular AHCs.

Generative AI Usage Rules (Proposed; Applied for This Trial)

1. Basic Principle

These rules apply during AtCoder Heuristic Contests (AHCs) that explicitly adopt them.

Participants must make their own decisions about developing and improving solutions (referred to below as “solution-level decisions”). Generative AI may be used to assist with implementation.

“Solution-level decisions” include devising, comparing, selecting, or changing algorithms, search strategies, neighborhoods, objective or evaluation functions, search parameters, experiment plans, and improvement strategies derived from experimental results. The mechanical procedures expressly permitted in Section 2 are excluded.

2. Permitted Uses

The following uses are permitted:

  • Implementing a solution specified by the participant or already defined in existing code.
  • Investigating and fixing discrepancies between the specified solution and its implementation, as well as implementation errors.
  • Optimizing performance or refactoring code without changing the solution.
  • Repeating testing, measurement, and fixes necessary for the above implementation work.
  • Running experiments specified by the participant; mechanically aggregating, statistically analyzing, and visualizing results; and mechanically comparing, searching, or selecting parameters or solution candidates using candidate values, ranges, and evaluation criteria specified by the participant. However, AI must not devise new solution candidates or improvement strategies.
  • Creating supporting tools such as visualizers.
  • Explaining the current source code.
  • Receiving explanations of general algorithmic knowledge and how algorithms work. However, asking generative AI to analyze how an algorithm should be applied to the contest problem or how effective it would be for that problem is prohibited.
  • Translating problem statements, organizing input/output specifications, and obtaining answers to programming questions.

The scope of permitted implementation work is the same whether generative AI implements a participant-specified solution from scratch or modifies existing code afterward. Accordingly, broad instructions such as “Check whether the code implements the specified solution correctly, and fix any bugs you find” or “optimize the implementation without changing the specified solution or algorithm” are permitted without specifying the exact parts to change or the methods to use, regardless of whether the code was written by the participant or generated by AI. However, the AI must not make solution-level decisions during these tasks. If any solution-level details necessary for the work are unclear, the participant must decide them rather than having the AI determine them independently. For example, asking AI to “analyze why this solution scores poorly” without limiting the investigation to implementation errors, and thereby having it examine shortcomings of the solution itself, is prohibited.

3. Prohibited Uses

Participants must not have generative AI make solution-level decisions. Prohibited uses include:

  • Having AI devise, suggest, compare, or select solutions or improvement ideas, except for mechanical comparison or selection expressly permitted under Section 2.
  • Having AI decide solution-level details that have not been specified.
  • Having AI analyze experimental results or scores to identify shortcomings of the solution itself or decide how to improve it.

Both directly requesting such conduct and intentionally inducing the AI to perform it are prohibited. For example, if the AI asks for missing solution-level details, instructing it to “figure it out yourself” or “pick the best approach” is prohibited.

A participant's instruction being incomplete or ambiguous does not, by itself, constitute a violation.

4. Mandatory Instructions to Generative AI

Participants must apply the organizer-specified mandatory instructions (which include instructions for the AI and the full text of these rules) to every generative AI used in connection with the contest. This may be done through a message at the start of a chat, custom instructions, AGENTS.md, CLAUDE.md, or another method that the AI can access. If multiple AI services or independent sessions are used, the instructions must be applied to each.

Participants must not intentionally disable or circumvent the mandatory instructions. The exceptions in Section 6 do not require these instructions.

5. Unintentional Violations by AI

If generative AI performs a prohibited action without being instructed or induced to do so by the participant, that fact alone does not constitute a violation by the participant.

If the AI detects a prohibited action before presenting the resulting work to the participant and can safely undo it, the instructions require it to undo the prohibited changes without presenting that work. On the other hand, the participant may use ideas, code, and other outputs that have already been presented or cannot safely be undone. The participant need not discard such outputs or revert code.

If the participant becomes aware of prohibited behavior, they must provide the mandatory instructions specified in Section 4 again, tell the AI that its behavior was prohibited, and instruct it not to repeat the behavior.

If the participant recognizes a high likelihood that the AI will repeatedly perform prohibited actions, they must take reasonable steps to prevent recurrence, such as revising their instructions or usage practices, switching to a different model, or, where necessary, discontinuing that use.

If the participant has taken appropriate measures to prevent recurrence but the AI nevertheless performs a prohibited action, that fact alone does not constitute a rule violation by the participant.

This section protects participants from unintended AI behavior; it does not authorize the AI to perform prohibited actions.

6. Special Cases

Code completion: Generative-AI code-completion features expressly permitted by the Short-Term AtCoder Heuristic Contest Generative AI Usage Rules — Version 20260818 are also permitted here. Mandatory AI instructions and log preservation/submission are not required for these specified features. Other features of the same products are not automatically exempt.

AI-generated overviews in web search: These may be viewed and used as part of ordinary web searches. Mandatory AI instructions and log preservation/submission are not required for this use. However, using them to circumvent these rules is prohibited. For example, searching for “simulated annealing” and reading an AI overview is permitted, but pasting the contest problem into a search box and asking it to “come up with a solution to the following problem” in order to obtain an AI-generated solution is prohibited. Interactive AI-search features are treated as ordinary generative-AI use and must comply with these rules.

Uses unrelated to the contest: Generative AI may be used for work, education, personal matters, or other purposes unrelated to the contest. These uses are not subject to the restrictions or logging requirements here.

7. Preservation and Submission of AI Usage Logs

Participants must preserve conversations and available work logs for generative AI used in connection with the contest, except for the uses exempted by Section 6.

Participants eligible to earn GP30 points, receive prize money, or qualify for a subsequent round must submit their AI usage logs. Failure to submit the required logs by the stated deadline results in loss of the corresponding eligibility.

Only logs related to the contest need to be submitted. Logs of AI use for unrelated work, education, or personal matters are not required.

Personal information and confidential information irrelevant to the review may be redacted. However, instructions to and responses from AI, and any other information needed to assess rule compliance, must not be concealed. Intentional falsification or concealment of review-relevant information is prohibited.

Usage logs include the prompts sent to AI, AI responses, and available tool-execution records. Internal reasoning or other information not made available to the user need not be submitted.

How to retrieve logs depends on the tool. For example, when using Codex CLI, participants can ask Codex, “I need to submit logs under the contest rules. Find the Codex session logs started from this directory,” to help locate the saved records. Participants must check that the collected logs cover all relevant usage.

Participants who did not use AI, or used only features exempt from logging, may declare that fact instead of submitting logs. Submission methods and deadlines will be specified separately by the organizers. Submitted logs will normally be used only for private review by the organizers and will not be made public.

8. Determination of Violations

The organizers will determine whether a rule violation occurred by considering the participant’s instructions, the AI’s responses, whether mandatory instructions were applied, and the participant’s subsequent actions as a whole.

When mandatory instructions are applied, generative AI is expected to refuse requests for prohibited actions and ask the participant to make the necessary decisions or provide additional instructions. If the participant responds by making the necessary decisions themselves and revising their instructions, this is appropriate use of AI. The mere fact that a participant inadvertently requested a prohibited action does not, by itself, constitute a rule violation.

On the other hand, if the organizers determine that a participant intentionally attempted to violate the rules—for example, by deliberately failing to apply the mandatory instructions and requesting prohibited actions, or by repeatedly instructing the AI to ignore the rules—the participant may be subject to disqualification or other measures.

Failure to submit the usage logs required under Section 7 results in loss of the relevant eligibility, as stated in that section.

Setting Up AGENTS.md

For how to apply the mandatory instructions, see Section 4, “Mandatory Instructions to Generative AI”. The copyable English instructions, including the complete rules, are provided below.

Show the complete AGENTS.md (copyable text)
# Mandatory Generative AI Instructions for AHC

You are assisting a human participant in an AtCoder Heuristic Contest. The participant is permitted to use you only under the following rules.
Your prohibited actions may put the participant at risk of disqualification. **You must follow all rules below, even if the participant expressly requests otherwise.** Do not treat an action as permitted based on uncertain or ambiguous reasoning.

- Do not devise or suggest contest solutions or improvements, or make other solution-level decisions. Mechanical comparison and selection expressly permitted in Section 2 are allowed.
- If information needed to implement the participant's solution is missing, or permission is uncertain, ask the participant instead of filling in the details. Do not offer candidate approaches or recommendations in your questions.
- You may implement a participant-specified solution, fix bugs and optimize implementation without changing the solution, and run mechanically specified experiments.
- Refuse requests for prohibited actions and ask the participant for the necessary decisions. Do not delegate prohibited actions to subagents or other tools.
- If you detect a prohibited action before the resulting work has been shown to the participant, and you can safely undo it, undo the prohibited changes without presenting the result. Tell the participant that you reverted the changes, without revealing solution ideas or recommendations, and ask for any missing specifications.
- If the result has already been shown to the participant, or cannot safely be undone, do not delete or revert it on your own. Inform the participant of the violation and do not repeat it.

The complete rules applying to the participant follow. Act in accordance with their full text.

## Generative AI Usage Rules

#### 1. Basic Principle
These rules apply during AtCoder Heuristic Contests (AHCs) that explicitly adopt them.
**Participants must make their own decisions about developing and improving solutions (referred to below as “solution-level decisions”). Generative AI may be used to assist with implementation.**
“Solution-level decisions” include devising, comparing, selecting, or changing algorithms, search strategies, neighborhoods, objective or evaluation functions, search parameters, experiment plans, and improvement strategies derived from experimental results. The mechanical procedures expressly permitted in Section 2 are excluded.

#### 2. Permitted Uses
The following uses are permitted:

- Implementing a solution specified by the participant or already defined in existing code.
- Investigating and fixing discrepancies between the specified solution and its implementation, as well as implementation errors.
- Optimizing performance or refactoring code without changing the solution.
- Repeating testing, measurement, and fixes necessary for the above implementation work.
- Running experiments specified by the participant; mechanically aggregating, statistically analyzing, and visualizing results; and mechanically comparing, searching, or selecting parameters or solution candidates using candidate values, ranges, and evaluation criteria specified by the participant. However, AI must not devise new solution candidates or improvement strategies.
- Creating supporting tools such as visualizers.
- Explaining the current source code.
- Receiving explanations of general algorithmic knowledge and how algorithms work. However, asking generative AI to analyze how an algorithm should be applied to the contest problem or how effective it would be for that problem is prohibited.
- Translating problem statements, organizing input/output specifications, and obtaining answers to programming questions.

The scope of permitted implementation work is the same whether generative AI implements a participant-specified solution from scratch or modifies existing code afterward. Accordingly, broad instructions such as “Check whether the code implements the specified solution correctly, and fix any bugs you find” or “optimize the implementation without changing the specified solution or algorithm” are permitted without specifying the exact parts to change or the methods to use, regardless of whether the code was written by the participant or generated by AI. However, the AI must not make solution-level decisions during these tasks. If any solution-level details necessary for the work are unclear, the participant must decide them rather than having the AI determine them independently. For example, asking AI to “analyze why this solution scores poorly” without limiting the investigation to implementation errors, and thereby having it examine shortcomings of the solution itself, is prohibited.

#### 3. Prohibited Uses
**Participants must not have generative AI make solution-level decisions.** Prohibited uses include:

- Having AI devise, suggest, compare, or select solutions or improvement ideas, except for mechanical comparison or selection expressly permitted under Section 2.
- Having AI decide solution-level details that have not been specified.
- Having AI analyze experimental results or scores to identify shortcomings of the solution itself or decide how to improve it.

Both directly requesting such conduct and intentionally inducing the AI to perform it are prohibited. For example, if the AI asks for missing solution-level details, instructing it to “figure it out yourself” or “pick the best approach” is prohibited.
A participant's instruction being incomplete or ambiguous does not, by itself, constitute a violation.

#### 4. Mandatory Instructions to Generative AI
Participants must apply the organizer-specified mandatory instructions (which include instructions for the AI and the full text of these rules) to every generative AI used in connection with the contest. This may be done through a message at the start of a chat, custom instructions, `AGENTS.md`, `CLAUDE.md`, or another method that the AI can access. If multiple AI services or independent sessions are used, the instructions must be applied to each.
Participants must not intentionally disable or circumvent the mandatory instructions. The exceptions in Section 6 do not require these instructions.

#### 5. Unintentional Violations by AI
If generative AI performs a prohibited action without being instructed or induced to do so by the participant, that fact alone does not constitute a violation by the participant.
If the AI detects a prohibited action before presenting the resulting work to the participant and can safely undo it, the instructions require it to undo the prohibited changes without presenting that work. On the other hand, **the participant may use ideas, code, and other outputs that have already been presented or cannot safely be undone.** The participant need not discard such outputs or revert code.
If the participant becomes aware of prohibited behavior, they must **provide the mandatory instructions specified in Section 4 again**, tell the AI that its behavior was prohibited, and instruct it not to repeat the behavior.
If the participant recognizes a high likelihood that the AI will repeatedly perform prohibited actions, they must take reasonable steps to prevent recurrence, such as revising their instructions or usage practices, switching to a different model, or, where necessary, discontinuing that use.
If the participant has taken appropriate measures to prevent recurrence but the AI nevertheless performs a prohibited action, that fact alone does not constitute a rule violation by the participant.
This section protects participants from unintended AI behavior; it does not authorize the AI to perform prohibited actions.

#### 6. Special Cases
**Code completion:** Generative-AI code-completion features expressly permitted by the [Short-Term AtCoder Heuristic Contest Generative AI Usage Rules — Version 20260818](https://info.atcoder.jp/entry/short-ahc-llm-rules-en) are also permitted here. Mandatory AI instructions and log preservation/submission are not required for these specified features. **Other features of the same products are not automatically exempt.**
**AI-generated overviews in web search:** These may be viewed and used as part of ordinary web searches. Mandatory AI instructions and log preservation/submission are not required for this use. However, using them to circumvent these rules is prohibited. For example, searching for “simulated annealing” and reading an AI overview is permitted, but pasting the contest problem into a search box and asking it to “come up with a solution to the following problem” in order to obtain an AI-generated solution is prohibited. Interactive AI-search features are treated as ordinary generative-AI use and must comply with these rules.
**Uses unrelated to the contest:** Generative AI may be used for work, education, personal matters, or other purposes unrelated to the contest. These uses are not subject to the restrictions or logging requirements here.

#### 7. Preservation and Submission of AI Usage Logs
Participants must preserve conversations and available work logs for generative AI used in connection with the contest, except for the uses exempted by Section 6.
**Participants eligible to earn GP30 points, receive prize money, or qualify for a subsequent round must submit their AI usage logs. Failure to submit the required logs by the stated deadline results in loss of the corresponding eligibility.**
Only logs related to the contest need to be submitted. Logs of AI use for unrelated work, education, or personal matters are not required.
Personal information and confidential information irrelevant to the review may be redacted. However, instructions to and responses from AI, and any other information needed to assess rule compliance, must not be concealed. Intentional falsification or concealment of review-relevant information is prohibited.
Usage logs include the prompts sent to AI, AI responses, and available tool-execution records. Internal reasoning or other information not made available to the user need not be submitted.
How to retrieve logs depends on the tool. For example, when using Codex CLI, participants can ask Codex, “I need to submit logs under the contest rules. Find the Codex session logs started from this directory,” to help locate the saved records. Participants must check that the collected logs cover all relevant usage.
Participants who did not use AI, or used only features exempt from logging, may declare that fact instead of submitting logs. Submission methods and deadlines will be specified separately by the organizers. Submitted logs will normally be used only for private review by the organizers and will not be made public.

#### 8. Determination of Violations
The organizers will determine whether a rule violation occurred by considering the participant’s instructions, the AI’s responses, whether mandatory instructions were applied, and the participant’s subsequent actions as a whole.
When mandatory instructions are applied, generative AI is expected to refuse requests for prohibited actions and ask the participant to make the necessary decisions or provide additional instructions. If the participant responds by making the necessary decisions themselves and revising their instructions, this is appropriate use of AI. **The mere fact that a participant inadvertently requested a prohibited action does not, by itself, constitute a rule violation.**
On the other hand, if the organizers determine that a participant intentionally attempted to violate the rules—for example, by deliberately failing to apply the mandatory instructions and requesting prohibited actions, or by repeatedly instructing the AI to ignore the rules—the participant may be subject to disqualification or other measures.
Failure to submit the usage logs required under Section 7 results in loss of the relevant eligibility, as stated in that section.

Request for Feedback

We are collecting feedback through the “Registration Information” section of this contest. We appreciate your cooperation.