結果

問題 No.272 NOT回路
ユーザー megane_ankomegane_anko
提出日時 2021-02-15 10:35:26
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 189 bytes
コンパイル時間 11,112 ms
コンパイル使用メモリ 254,364 KB
実行使用メモリ 42,400 KB
最終ジャッジ日時 2023-09-30 04:26:32
合計ジャッジ時間 10,161 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
42,344 KB
testcase_01 AC 74 ms
42,180 KB
testcase_02 AC 71 ms
42,228 KB
testcase_03 AC 71 ms
42,240 KB
testcase_04 AC 70 ms
42,276 KB
testcase_05 AC 70 ms
42,220 KB
testcase_06 AC 71 ms
42,384 KB
testcase_07 AC 71 ms
42,240 KB
testcase_08 AC 70 ms
42,400 KB
testcase_09 AC 70 ms
42,220 KB
testcase_10 AC 70 ms
42,356 KB
testcase_11 AC 71 ms
42,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');

const X = parseInt(input);

if(X === 0) {
    console.log("1");
} else if (X === 1) {
    console.log("0");
}
0