[Python] Building an environment for competitive programming with Atom (input () can be used!) [Mac]

Python standard input required for competition pros in Atom input() There wasn't much information about building an environment that can be used ... So I will write an article! Maybe it will take less than 30 minutes to complete the work! Super easy! By the way, it's a Mac. I don't know if it can be done with Window!

python3 installation

Download from Official Site

Atom installation, initial settings

The following articles were helpful! [Building a test environment for competitive programming with atom / python](https://qiita.com/crukky/items/73c1322f5929b1ca5834#%E5%8F%82%E8%80%83%E8%B3%87%E6%96% 99)

Other things to do

Home directory (There are downloads and desktops in the same hierarchy) Create a folder called "python" in that folder

Create 2 files. Now you are ready.

The image looks like this ↓ スクリーンショット 2020-04-24 8.47.22.png

** (Added on 2020/05/05) ** The current template is different from the template in the image above I'm using sys.stdin.readline (). Rstrip () instead of ʻinput ()`. (Title scam w)

Terminal operation

You only need to know the following 5 commands / operations. clear Clear the terminal pwd You can check the location of the current folder cd python Move to the" python "folder created in your home directory python3 test.py <input.txt Run with python3 Keyboard up arrow button You can see the commands you have entered so far Once the environment is built All you have to do is select python3 test.py <input.txt with the keyboard up arrow button and press Enter!

Operation of Atom

** (Added on 2020/05/06) ** List of useful shortcuts ~

--Delete (cut) the entire line - command+x --Comment out the entire line (multiple lines are possible) - command+/ --When you want to change variable names at once - command+ctrl+g --Show / Hide Terminal --ctrl + (Backtick) (shift + @ on my keyboard)

bonus

By the way, if you want to hide the computer name and user name of the terminal, this was helpful! Erase the first computer name / user name in the Mac terminal

Please comment if you have any!

end!

Recommended Posts

[Python] Building an environment for competitive programming with Atom (input () can be used!) [Mac]
[Python] Building an environment with Anaconda [Mac]
Building an environment for executing Python scripts (for mac)
Building an Anaconda environment for Python with pyenv
Japanese can be used with Python in Docker environment
Building an environment for natural language processing with Python
Building a Python environment for programming beginners (Mac OS)
Python3 standard input for competitive programming
[Mac] Building a virtual environment for Python
[Definitive Edition] Building an environment for learning "machine learning" using Python on Mac
Mathematical optimization that can be used for free work with Python + PuLP
Various commands for building an environment with Apache
Building an environment for matplotlib + cartopy on Mac
Try building an environment for MayaPython with VisualStudioCode
Notes from installing Homebrew to building an Anaconda environment for Python with pyenv
Python programming with Atom
Competitive programming with python
Building an environment for "Tello_Video" on Mac OS X
Python knowledge notes that can be used with AtCoder
I tried to build an environment for machine learning with Python (Mac OS X)
Python environment construction For Mac
Let's get started with Python ~ Building an environment on Windows 10 ~
SSD 1306 OLED can be used with Raspberry Pi + python (Note)
Can be used with AtCoder! A collection of techniques for drawing short code in Python!
Building a Python environment on Mac
Until torch-geometric can be used only with Windows (or Mac) CPU
Error when building mac python environment
Building a Windows 7 environment for getting started with machine learning with Python
Building a virtual environment with Python 3
Understand the probabilities and statistics that can be used for progress management with a python program
Python3 TensorFlow for Mac environment construction
Python standard input summary that can be used in competition pro
Prepare Python development environment with Atom
Anyone can understand how to build an initial environment for Python on Mac September 2016 (pyenv + virutalenv)
A memo when creating an environment that can be debugged with Lambda @ Edge for the time being
[Definitive Edition] Building an environment for learning "machine learning" using Python on Windows
I created a template for a Python project that can be used universally
Tips (input / output) that you should know when programming competitive programming with Python2
[Pyenv] Building a python environment with ubuntu 16.04
Building a Python3 environment with Amazon Linux2
Build an environment for Blender built-in Python
Note when creating an environment with python
Creating amateur python environment settings (for MAC)
Building a Python 3.6 environment with Windows + PowerShell
Build Python environment with Anaconda on Mac
[Competitive programming] [Python3] Required knowledge, for myself
Building a Python development environment for AI development
Building an environment for "Tello_Video" on Raspbian
Building an environment for "Tello_Video" on Windows
How to build an environment for using multiple versions of Python on Mac
You will be an engineer in 100 days --Day 35 --Python --What you can do with Python
I made a familiar function that can be used in statistics with Python
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
Get all standard inputs used in paiza and competitive programming with int (python)
Re: Competitive programming life starting from zero Chapter 1 1 "Only C ++ can be used"
Selenium + WebDriver (Chrome) + Python | Building environment for scraping
++ and-cannot be used for increment / decrement in python
I made a competitive programming glossary with Python
File types that can be used with Go
Functions that can be used in for statements
Building a python environment with virtualenv and direnv