結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 20:22:17 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 437 bytes |
| 記録 | |
| コンパイル時間 | 2,336 ms |
| コンパイル使用メモリ | 330,420 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 20:22:27 |
| 合計ジャッジ時間 | 3,211 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
string s;
cin>>s;
int n=s.size();
if(n>32){
cout<<400<<endl;
return 0;
}
if(s[0]=='-'||s[0]=='_'||s.back()=='-'||s.back()=='_'){
cout<<400<<endl;
return 0;
}
for(int i=0;i<n;i++){
if(!(('a'<=s[i]&&s[i]<='z')||('A'<=s[i]&&s[i]<='Z')||('0'<=s[i]&&s[i]<='9')||s[i]=='-'||s[i]=='_')){
cout<<400<<endl;
return 0;
}
}
cout<<200<<endl;
}