結果

問題 No.272 NOT回路
ユーザー ayaaya
提出日時 2019-07-26 13:43:08
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 18,604 KB
実行使用メモリ 18,888 KB
最終ジャッジ日時 2023-09-15 00:19:33
合計ジャッジ時間 1,125 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,872 KB
testcase_01 AC 16 ms
18,868 KB
testcase_02 AC 16 ms
18,796 KB
testcase_03 AC 16 ms
18,868 KB
testcase_04 AC 15 ms
18,608 KB
testcase_05 AC 15 ms
18,740 KB
testcase_06 AC 15 ms
18,884 KB
testcase_07 AC 15 ms
18,792 KB
testcase_08 AC 16 ms
18,888 KB
testcase_09 AC 16 ms
18,768 KB
testcase_10 AC 15 ms
18,832 KB
testcase_11 AC 16 ms
18,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
//No.272 NOT回路

$input=trim(fgets(STDIN));
if($input==0){
  $input=1;
}elseif($input==1){
  $input=0;
}
echo $input."\n";  

?>
0