結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 18:42:19 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 9,658 ms |
| コンパイル使用メモリ | 411,936 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-18 18:42:36 |
| 合計ジャッジ時間 | 7,560 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 5 |
ソースコード
#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<=32){
if(regex_match(input,re)){
if(regex_match(input,ra)){
returnNum = 200;
}
}
}
cout<<returnNum;
}