結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
テナガザル
|
| 提出日時 | 2026-04-17 20:29:47 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 1,947 ms |
| コンパイル使用メモリ | 167,552 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 20:29:51 |
| 合計ジャッジ時間 | 2,871 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s;
int ans = 1;
if (s.size() <= 0 || s.size() > 32) ans = 0;
for (auto c : s)
{
if (!(('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z') || ('0' <= c && c <= '9') || c == '_' || c == '-')) ans = 0;
}
if (s[0] == '_' || s[0] == '-' || s.back() == '_' || s.back() == '-') ans = 0;
cout << (ans ? 200 : 400) << endl;
}
テナガザル