結果

問題 No.272 NOT回路
ユーザー enen
提出日時 2016-03-25 00:03:47
言語 Ruby
(3.2.2)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 45 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2023-07-25 06:00:28
合計ジャッジ時間 1,974 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,120 KB
testcase_01 AC 84 ms
15,104 KB
testcase_02 AC 84 ms
15,120 KB
testcase_03 AC 81 ms
15,296 KB
testcase_04 AC 82 ms
15,088 KB
testcase_05 AC 86 ms
15,228 KB
testcase_06 AC 82 ms
15,100 KB
testcase_07 AC 82 ms
15,080 KB
testcase_08 AC 82 ms
15,172 KB
testcase_09 AC 83 ms
15,280 KB
testcase_10 AC 84 ms
15,044 KB
testcase_11 AC 84 ms
15,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
puts 0 if n !=0
puts 1 if n !=1
0