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

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

簡単 · 134 中級 · 68 難しい · 24

練習できるスキル: カウント文字列の分割桁の取り出し2 次元リストリストループ公式算術1 回の走査2 つのポインタwhileループポリモーフィズム
  • Python · C++ · C#
  • 自動テスト
  • AIコードレビュー
  • コミュニティの解答
226
チャレンジ数
2
共有された解答
3
対応言語

すべてのチャレンジ

トピック、言語、難易度で検索できます。

226件のチャレンジ
簡単

Average of Three

Average three whole numbers.

学べること 算術除算
BeginnerLearning-pathVariables
難しい

Mini Stack-Language Interpreter

Evaluate a small stack language.

学べること トークン化命令の実行
InterpretersParsingStacks
まだ解答がありません
難しい

Count Inversions

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

学べること マージソート分割統治
AdvancedCompetitive-programmingSorting
まだ解答がありません
難しい

Trapping Rain Water

Compute how much rain water an elevation map holds.

学べること 2 つのポインタ累積最大値
AdvancedArraysCompetitive-programmingGreedy
まだ解答がありません
簡単

ピラミッドの行

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

学べること 文字列のパターン余白
BeginnerLearning-pathNested-loopsPatterns
まだ解答がありません
中級

Island Perimeter

Measure the coastline of land cells in a grid.

学べること 辺の数え上げ4 近傍の確認
AdvancedGridsHackathon
まだ解答がありません
難しい

Sliding Window Maximum

Report the maximum of every window of k numbers.

学べること 単調 dequeO(n) のウィンドウ処理
AdvancedCompetitive-programmingSliding-window
まだ解答がありません
簡単

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

学べること 算術戻り値
BeginnerLearning-pathVariables
中級

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

学べること 基底ケース文字列の整形
BeginnerLearning-pathRecursionStrings
まだ解答がありません
簡単

Hollow Square

Draw the outline of a square with * characters.

学べること 縁の判定文字列の作成
BeginnerLearning-pathNested-loopsPatterns
まだ解答がありません
簡単

Days in a Month

Return how many days a month has, including leap years.

学べること 暦の規則補助関数
BeginnerConditionsFunctionsLearning-path
まだ解答がありません
簡単

Cash: Fewest Coins

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

学べること 貪欲法両替
BeginnerGreedyStudent-beginnermath
まだ解答がありません
簡単

摂氏から華氏への変換

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

学べること 公式演算子の優先順位
BeginnerLearning-pathVariables
まだ解答がありません
簡単

フィボナッチ数

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

学べること 反復2 変数の更新
BeginnerLoopsSequencesStudent-beginner
まだ解答がありません
中級

Tic-Tac-Toe Winner

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

学べること 勝利条件対角線
BeginnerConditionsGridsLearning-path
まだ解答がありません
簡単

素数判定

数が素数かどうかを判定してください。

学べること 割り切れるかの判定ループの最適化
BeginnerLoopsNumbersStudent-beginner
まだ解答がありません
中級

グリッド経路の数え上げ

右または下への移動のみを使って、長方形グリッド上の経路の数を数えます。

学べること 格子経路の数え上げ二項係数
CombinatoricsDynamic-programming
まだ解答がありません
難しい

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

学べること 区間 DP最適化
AdvancedCompetitive-programmingDynamic-programming
まだ解答がありません