結果

問題 No.3497 Sign up for traP
コンテスト
ユーザー umi
提出日時 2026-04-18 19:03:21
言語 C++23
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 832µs
コード長 430 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,913 ms
コンパイル使用メモリ 416,008 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2026-10-15 08:04:55
合計ジャッジ時間 7,031 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0