Coder Social home page Coder Social logo

atcoder-vscode-example's Introduction

概要

AtCoder の問題の解答コードを VSCode で書く際の設定例です。言語は C++で AtCoder Library 対応です。また Language Server としてclangdを使います。

準備

AtCoder Library

リポジトリのルートの直下に https://github.com/atcoder/ac-library をクローンします。

clangd

  1. clangd 拡張を VSCode にインストールしてください。
  2. clangd のバイナリは拡張が自動で取ってきてくれますが、clangd.pathを設定することで自前で用意したバイナリを使うこともできます。

コードを書く

  1. リポジトリのルートディレクトリを VSCode で開きます。
  2. コンテスト用のディレクトリを作成し、移動します。構成はpractice2ディレクトリを参考にしてみてください。
  3. コードを書きます。
  4. コードを書き終わったらCtrl+Shift+Bでビルドします。
    ラベル 意味 出力ファイル
    g++ build ACL なしでビルド ${filename}
    g++ build (DEBUG) ACL なし + DEBUG シンボル
    g++ build with AtCoder Library ACL ありでビルド
    g++ build with AtCoder Library (DEBUG) ACL あり + DEBUG シンボル
    g++ build (ACL, optimization) ACL + O2 最適化
    Expand ACL を含めたソースコードを出力(expander.py) combined.cpp

参考になりそうなリンク

Tasks in Visual Studio Code

atcoder-vscode-example's People

Contributors

prfss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.