Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Article on common I/O optimizations #903

Open
@jxu

Description

@jxu

It's well-known for competition programming in C++ to use the following simple I/O optimizations:

  • ios_base::sync_with_stdio(false) which shouldn't ever be a problem as you shouldn't use C I/O in c++ ever
  • cin.tie(0) (except for maybe interactive problems)

(they should be prefixed withstd:: but competition programmers use namespace std which is bad style but probably ok for cp)

Here's an ancient Dr Dobbs article on ithttps://www.drdobbs.com/the-standard-librarian-iostreams-and-std/184401305
alsohttps://codeforces.com/blog/entry/6251

Should this be its own article? So we have a convenient reference instead of tracking down CF blogs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp