結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
megane_anko
|
| 提出日時 | 2021-03-18 23:58:09 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 8,105 ms |
| コンパイル使用メモリ | 228,532 KB |
| 実行使用メモリ | 41,460 KB |
| 最終ジャッジ日時 | 2024-12-31 16:35:03 |
| 合計ジャッジ時間 | 9,764 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 6 |
ソースコード
import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');
const N = parseInt(input);
if (N === 0) {
console.log('0');
} else if (N % 2 === 0) {
console.log('2');
} else if (N % 2 !== 0) {
console.log('1');
}
megane_anko