結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-27 15:37:42 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 526 bytes |
| コンパイル時間 | 28 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 41,592 KB |
| 最終ジャッジ日時 | 2024-10-13 01:24:54 |
| 合計ジャッジ時間 | 2,391 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 23 |
ソースコード
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));
if (removedDuplicates.length === 13) {
console.log(alls.join("\n"))
} else if (removedDuplicates.length === 12) {
for (let c in alls) {
if (!(c in removedDuplicates)) {
console.log(c)
return;
}
}
} else {
console.log("Impossible")
}