結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-27 15:48:02 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 588 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 39,424 KB |
| 最終ジャッジ日時 | 2024-10-13 01:25:02 |
| 合計ジャッジ時間 | 2,416 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 24 |
ソースコード
const inputStr = require("fs").readFileSync("/dev/stdin", "utf8")
const alls = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm' ];
const inputs = inputStr.split("");
const removedDuplicates = Array.from(new Set(inputs));
console.log("removedDuplicates:", removedDuplicates);
if (removedDuplicates.length === 13) {
console.log(alls.join("\n"))
} else if (removedDuplicates.length === 12) {
for (let c of alls) {
if (!(removedDuplicates.includes(c))) {
console.log(c)
return;
}
}
} else {
console.log("Impossible")
}