C++ のコーディングチャレンジ

C++ で解けるチャレンジ 341 問。はじめてのループからグラフ、動的計画法、機械学習まで。ブラウザでコードを書き、すぐにテストを実行して AI のレビューを受けられます。

簡単 · 193 中級 · 119 難しい · 29

練習できるスキル: 二重ループ桁の取り出し文字列の分割カウントループ条件分岐剰余演算素数判定2 次元リストエラトステネスの篩リスト入力の検証
  • Python · C++ · C#
  • 自動テスト
  • AIコードレビュー
  • コミュニティの解答
341
チャレンジ数
245
共有された解答
9
対応言語

すべてのチャレンジ

名前やトピックで検索したり、難易度で絞り込んだりできます。

341件のチャレンジ
簡単

Average of Three

Average three whole numbers.

学べること 算術除算
初級Learning-pathVariables
簡単

フィボナッチ数

n番目のフィボナッチ数を返してください。

学べること 反復2 変数の更新
初級ループSequences初心者向け
中級

Tournament Standings

Rank teams from match records.

学べること 結果の集計キーによるソート
辞書構文解析ソート
難しい

Minimum Network Connection Cost

Choose undirected links so that every vertex can reach every other vertex, with minimum total cost.

学べること クラスカル法Union-Find
Disjoint-setsGraphsMinimum-spanning-tree
中級

Shortest Weighted Routes

Find the minimum total route cost from city 1 to each city.

学べること ダイクストラ法遅延削除
GraphsPriority-queues最短経路
簡単

ピラミッドの行

# ブロックで右寄せのピラミッドを描画します。

学べること 文字列のパターン余白
初級Learning-path二重ループパターン
中級

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

学べること 勝利条件対角線
初級条件分岐グリッドLearning-path
中級

Island Perimeter

Measure the coastline of land cells in a grid.

学べること 辺の数え上げ4 近傍の確認
上級グリッドHackathon
難しい

Trapping Rain Water

Compute how much rain water an elevation map holds.

学べること 2 つのポインタ累積最大値
上級Arrays競技プログラミングGreedy
簡単

Hollow Square

Draw the outline of a square with * characters.

学べること 縁の判定文字列の作成
初級Learning-path二重ループパターン
難しい

Mini Stack-Language Interpreter

Evaluate a small stack language.

学べること トークン化命令の実行
Interpreters構文解析スタック
中級

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

学べること 基底ケース文字列の整形
初級Learning-path再帰Strings
簡単

Min and Max Together

Find the smallest and largest value in one pass.

学べること 1 回の走査複数の戻り値
Arrays初級関数Learning-path
難しい

Count Inversions

Count the out-of-order pairs in a list.

学べること マージソート分割統治
上級競技プログラミングソート
難しい

Sliding Window Maximum

Report the maximum of every window of k numbers.

学べること 単調 dequeO(n) のウィンドウ処理
上級競技プログラミングSliding-window
簡単

Cash: Fewest Coins

Give change with as few U.S. coins as possible.

学べること 貪欲法両替
初級Greedy初心者向け数学
中級

重み付きグリッド上の A* 探索

ゲームやロボットの経路探索を支える A* で、地形コストのグリッドを横切る最安の経路を求めます。

学べること A* 探索ヒューリスティック
Graphsグリッド最短経路ai
簡単

摂氏から華氏への変換

摂氏温度を華氏温度に変換してください。

学べること 公式演算子の優先順位
初級Learning-pathVariables