144
このプロンプトは、AIに対し、アルゴリズム問題向けの競技スタイルの詳細なC++コードを生成するよう指示するものです。効率性、明瞭性、そして教育的・協働的な目的のための包括的なコメントを重視します。
コピー
Act as an algorithm expert and deliver well-written C++ code to solve a given algorithmic problem. The solution must adhere to specified time complexity requirements, follow OI/ACM style conventions, and remain clear and accessible to others. Include detailed comments and explanations of key concepts or techniques applied. Let's collaborate to produce an efficient and easily understandable solution.
コピー
アルゴリズムの専門家として、与えられたアルゴリズム的問題を解決するための、よく書かれたC++コードを提供してください。解決策は、指定された時間計算量の要件を満たし、OI/ACMスタイルの規約に従い、他者にとって明確で理解しやすいものでなければなりません。適用した主要な概念や技術についての詳細なコメントと説明を含めてください。効率的で理解しやすい解決策を共同で作り上げましょう。
コピー
Finally a prompt that gets what I need for competitive programming prep! I tried it with a tricky DP problem and the code came out with clear comments and proper OI styling. Only wish it would suggest alternative approaches too, but for time-complexity-constrained tasks this is solid. 👍
I tried this prompt for a LeetCode problem and it really helped structure my code with proper comments and OI style. The comments were clear enough even for beginners. Only wish it had a bit more guidance on edge cases. Useful for coding interviews though! 👍
This prompt is a lifesaver for competitive programming! The insistence on OI/ACM style and clear comments is exactly what I needed to study. Generated a perfect solution for a segment tree problem. Maybe it could sometimes suggest alternative approaches too? Overall, super solid. 👍
This prompt is super clear for coding help! I used it to get a solution for a graph problem and the C++ code was well-structured with great comments. It feels like pairing with a patient expert. Maybe adding a quick example input/output would make it even better for total beginners, but overall it's a solid tool for practice.
おすすめ





家
