結果
| 問題 |
No.272 NOT回路
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-11 22:35:34 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 78 ms / 1,000 ms |
| コード長 | 508 bytes |
| コンパイル時間 | 28 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 42,680 KB |
| 最終ジャッジ日時 | 2024-10-12 23:45:20 |
| 合計ジャッジ時間 | 1,448 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 11 |
ソースコード
var lines = [];
var counter = 0;
var reader = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
reader.on('line', function (line) {
counter += 1;
lines.push(line);
if( counter == 1 ) {
main();
process.exit(0);
}
});
process.stdin.on('end', function () {
//do something
});
function main(){
ents = [];
lines.map(function(x){
var num = parseInt(x);
if ( num == 0 ) {
console.log(1);
} else {
console.log(0);
}
});
}
💕💖💞