結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 17:11:45 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,217 bytes |
| 記録 | |
| コンパイル時間 | 2,757 ms |
| コンパイル使用メモリ | 245,556 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-18 17:11:50 |
| 合計ジャッジ時間 | 3,762 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
// @yuuzaa_tkms
#include <bits/stdc++.h>
#include <atcoder/all>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define Ye cout<<"Yes"<<endl
#define YE cout<<"YES"<<endl
#define No cout<<"No"<<endl
#define NO cout<<"NO"<<endl
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define vec vector
using namespace std;
using ll=long long;
using ull=unsigned long long;
using namespace atcoder;
using mint=modint998244353;
vector<int>dx={0,1,0,-1,-1,-1,1,1};
vector<int>dy={1,0,-1,0,-1,1,-1,1};
int INF=1e9;
ull LINF=1e18;
bool edge(int x,int y,int H,int W){
if(x<0||x>=H||y<0||y>=W)return 0;
else return 1;
}
//実装は丁寧に書こう
//1400復帰しよう!
string T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";
int main(){
string S;
cin>>S;
bool b=0;
if(S.size()>=1&&S.size()<=32)b=1;
rep(i,S.size()){
bool bb=0;
if(i==0||i==(int)S.size()-1){
if(S[i]=='-'||S[i]=='_')b=0;
}
rep(j,T.size()){
if(T[j]==S[i])bb=1;
}
if(!bb)b=0;
}
if(!b)cout<<400<<endl;
else cout<<200<<endl;
}