結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 12:05:21 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 590 bytes |
| 記録 | |
| コンパイル時間 | 2,095 ms |
| コンパイル使用メモリ | 331,576 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-18 12:05:26 |
| 合計ジャッジ時間 | 4,831 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, j, N) for (int i = j; i < N; i++)
string S;
int main() {
cin >> S;
bool ok = true;
char f = S.front(), e = S.back();
if (f == '_' || f == '-' || e == '_' || e == '-') ok = false;
for (auto c : S) {
int s = c - 'a', b = c - 'A', n = c - '0';
if ((0 <= s && s <= 25) ||
(0 <= b && b <= 25) ||
(0 <= n && n <= 9) ||
c == '_' || c == '-') continue;
ok = false;
}
cout << (ok ? 200 : 400) << endl;
return 0;
}