結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 18:48:14 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| 記録 | |
| コンパイル時間 | 8,916 ms |
| コンパイル使用メモリ | 411,944 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-18 18:48:30 |
| 合計ジャッジ時間 | 7,815 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 14 WA * 4 |
ソースコード
#include <bits/stdc++.h>
#include <regex>
using namespace std;
int main(){
string input;
regex re(R"([A-Za-z0-9_-]*)");
regex ra(R"(^[^_-]?[^_-]$)");
int returnNum = 400;
cin>>input;
int len = input.length();
if(len>=1&&len<=32){
if(regex_match(input,re)){
if(regex_match(input,ra)){
returnNum = 200;
}
}
}
cout<<returnNum;
}