結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 10:03:11 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 381µs | |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 4,729 ms |
| コンパイル使用メモリ | 313,936 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-09-08 10:49:03 |
| 合計ジャッジ時間 | 5,785 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main()
{
string S;
cin >> S;
regex pattern("^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,30}[A-Za-z0-9])?$");
if (regex_match(S, pattern)) {
cout << 200 << endl;
} else {
cout << 400 << endl;
}
}