結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 22:52:51 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 494 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 52,704 KB |
| 最終ジャッジ日時 | 2026-04-17 22:53:02 |
| 合計ジャッジ時間 | 5,670 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 1 |
ソースコード
function Main(input) {
const S = input.trim();
let rslt = true;
if (S.length > 32) rslt = false;
const set = new Set(["_", "-"]);
if (set.has(S.at(0)) || set.has(S.at(-1))) rslt = false;
const OK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (const i of OK) set.add(i);
for (let i = 1; i < S.length - 1; i++) {
if (!set.has(S[i])) rslt = false;
}
console.log(rslt ? 200 : 400);
}
Main(require("fs").readFileSync(0)+"");