144
此提示要求人工智慧生成詳細的、競賽風格的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.
推薦





首頁
