0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-14 06:38:49 +00:00
OI-codes/S2OJ/166/data/val.cpp

22 lines
361 B (Stored with Git LFS)
C++

#include <bits/stdc++.h>
#include "testlib.h"
using namespace std;
const int LIM = 1.1e7;
string s;
int main(int argc, char *argv[])
{
registerValidation();
s=inf.readWord(); inf.readEoln();
ensuref(s.length()<=LIM, "The string is too long!");
inf.readEof();
for(char t : s)
ensuref(islower(t), "The character is not in the charset");
return 0;
}