No.272 NOT Circuit
レベル :
/ AI推定難易度 : 73
/ 実行時間制限 : 1ケース 1.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 868
作問者 :
nmnmnmnmnmnmnm
タグ : / 解いたユーザー数 868
作問者 :
nmnmnmnmnmnmnm
問題文最終更新日: 2026-06-28 20:49:18
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 119
(順位表)
の他の問題:
Problem Statement
A NOT circuit is a circuit that "outputs 1 when 0 is input, and outputs 0 when 1 is input."
Let's write a program that behaves like a NOT circuit.
Input
$X$
$X$ is a digit, either 0 or 1.
Output
If the input is 0, output 1.
Conversely, if the input is 1, output 0.
Don't forget the newline at the end.
Sample
Sample 1
Input
0
Output
1
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。