prompt string | response string |
|---|---|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | /*
2522:Register Phase
*/
#include <iostream>
#include <string>
using namespace std;
bool isbigal(char);
bool issmlal(char);
bool isnum(char);
int main(void) {
string str;
bool s = false, b = false, n = false;
cin >> str;
string::iterator it = str.begin();
while(it != str.end()) {
if( isbigal(*it) ) { b ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
using namespace std;
int main(){
string str;
cin >> str;
bool s,c,n;
s = c = n = false;
for(int i=0; i<(int)str.length(); i++){
if(str[i]>='a' && str[i]<='z') s = true;
if(str[i]>='A' && str[i]<='Z') c = true;
if(str[i]>='0' && str[i]<='9') n = true;
}
if(s && c && n && s... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <cctype>
using namespace std;
bool isValid(string s) {
bool num, lower, upper;
num = lower = upper = false;
if (s.length() < 6) {
return false;
}
for (int i = 0; i < (int)s.length(); i++) {
if (isdigit(s.at(i))) {
num = true;
} else if (islower(s.at(i))) ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int l = s.length();
if(l<6) {
System.out.println("INVALID");
return;
}
char[] p = new char[l];
for(int i=0;i<l;i++) {
p[i] = s.charAt(i);
}
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main(){
string input;
cin >> input;
if (input.length() < 6){
cout << "INVALID" << endl;
return 0;
}
int flag = 0;
for (int i = 0; i < input.length(); i++){
if (input[i] >= '0'&&input[i] <= '9'){
flag = 1;
break;
}
}
if (!flag){
cou... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<cmath>
#include<vector>
#include<string>
typedef unsigned long long ull;
#define rep(i,a) for(int i=0;i<a;i++)
#define loop(i,a,b) for(int i=a;i<b;i++)
using namespace std;
const double eps = 1e-10;
const double pi = acos(-1);
const double inf = (int)1e8;
int main(void){
string str;
cin... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main(void)
{
string str;
cin >> str;
int n = str.length();
bool f = true;
if (n < 6) f = false;
int cnt = 0;
for (int i = 0; i < n; i++){
if ('0' <= str[i] && str[i] <= '9') cnt++;
}
if (cnt < 1) f = false;
cnt = 0;
for (int i = 0; i ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... |
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctype.h>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <complex>
#include <sstream>
#include <string>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <vector>
#include <set>
#include <limits>
#include <cstdio>
#include <cctype>
#include <cmath>
#include <cstring>
#include <cstdli... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <cstring>
#define rep(i,j) REP((i), 0, (j))
#define REP(i,j,k) for(int i=(j);(i)<(k);++i)
using namespace std;
int main(){
bool l, n, b, s;
char str[512];
scanf("%s", str);
l = n = b = s = false;
if(strlen(str) >= 6) l = true;
rep(i, strlen(str)){
if(str[i] >= '0' && str[i] <=... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <algorithm>
#include <stack>
#include <queue>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <functional>
#define REP(i,n) for(int i=0;... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <cctype>
using namespace std;
int main() {
string str; cin >> str;
bool len = false; bool num = false;
bool cap = false; bool sma = false;
if (str.size() >= 6) len = true;
for (auto &itr : str) {
if (isdigit(itr) != 0) num = true;
if (isupper(itr) != 0) cap = true;
if (islower(i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
#include<queue>
#include<utility>
#include<algorithm>
#include<cctype>
using namespace std;
int main(){
string str;
bool a=false,b=false,c=false,d=false;
cin >> str;
if( str.size() >= 6 ) a = true;
for(int i=0;i<str.size();i++){
if(isdigit(str[i])) b = true;
if(i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<cctype>
using namespace std;
int main() {
string str;
getline(cin, str);
bool f = 0, bad=0;
if(str.size()<6) bad=1;
for(int i=0;i<str.size();i++) if(isdigit(str[i])) f=1;
if(!f) bad=1;
f=0;
for(int i=0;i<str.size();i++) if('a'<=str[i]) f=1;
if(!f) bad=1;
f=0;
for(int i=0;i<str.size();i++) if... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<string>
#include<cstring>
#include<cstdlib>
#include<cctype>
#include<bitset>
#include<functional>
#include<climits>
using namespace std;
typedef pair<int,int>pii;
const int INF=... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define FOR(i, m, n) for(int i=(m); i<(n); ++i)
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define Cout(x) cout << (x) << endl
#def... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
string pass;
bool check = true;
cin>>pass;
int sizes = pass.size();
if(sizes < 6){
check = false;
}
else{
bool nc = false;
bool xc = false;
bool Xc = false;
for(char e : pass){
if(65 <= e && e <= 90 && ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main() {
string a;
cin >> a;
if (a.size() >= 6) {
bool hantei = false;
bool hantei2 = false;
bool hantei3 = false;
for (int i = 0; i < a.size(); i++) {
if (a[i] >= '0' && a[i] <= '9') {
hantei = true;
} else if (isup... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... |
pas = input()
ans1,ans2,ans3 = 0,0,0
if len(pas)<6:
print("INVALID")
else:
for i in range(len(pas)):
if pas[i].isupper(): ans1 += 1
if pas[i].islower(): ans2 += 1
if pas[i].isdecimal(): ans3 += 1
if ans1>0 and ans2>0 and ans3>0: print("VALID")
else: print("INVALID")
|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
using namespace std;
int main(){
string str;
cin >> str;
int len = str.size();
if(len < 6) cout << "INVALID" << endl;
else {
int f1=0,f2=0,f3=0;
for(int i=0;i<len;i++){
if(str[i] >= '0' && str[i] <= '9') f1=1;
else if(str[i] >= 'A' && str[i] <= 'Z') f2=1;
else f3=1... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import re
s=input()
if len(s)>=6 and re.findall("[0-9]", s) and re.findall("[A-Z]", s) and re.findall("[a-z]", s):
print("VALID")
else:
print("INVALID")
|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <cctype>
using namespace std;
int main(){
string s;
while(cin >> s){
bool flgA = false;
bool flgB = false;
bool flgC = false;
for(int i = 0; i < s.size(); i++){
if(isdigit(s[i])){
flgA = true;
}
if(islower(s[i])){
flgB = true;
}... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char[] c = sc.next().toCharArray();
int[] a = new int[3];
if(c.length>=6){
for(int i=0;i<c.length;i++){
if(Character.isUpperCase(c[i])) a[0]++;
else if(Character.isLowerCas... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cctype>
#include<cstring>
using namespace std;
int main(void){
string s;
cin >> s;
if(s.size()<6){
cout << "INVALID" << endl;
return 0;
}
bool num=false,low=false,up=false;
for(int i=0;i<s.size();i++){
num|=is... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | s = input()
if len(s) >= 6 and\
any([(c in s) for c in "1234567890"]) and\
any([(c in s) for c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]) and\
any([(c in s) for c in "abcdefghijklmnopqrstuvwxyz"]):
print("VALID")
else:
print("INVALID")
|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <cmath>
#include <cfloat>
using namespace std;
int main(){
int f[4]={0};
string s;
cin>>s;
if(s.length()>=6)
f[0]=1;
if(f[0]==1){
for(int i=0;i<s.length();i++){
if(s[i]>='A'&&s[i]<='Z')
f[1]=1;
e... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | s = input()
if len(s) < 6 or s.isalpha() or s.isdigit() or s.islower() or s.isupper():
print("INVALID")
else:
print("VALID")
|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
using namespace std;
int main(){
string p;
cin>>p;
int a=0;
int b=0;
int c=0;
for(int i = 0;i<p.size();i++){
if(p[i]>='a'&&p[i]<='z')a=1;
if(p[i]>='A'&&p[i]<='Z')b=1;
if(p[i]>='0'&&p[i]<='9')c=1;
}
if(p.size()>=6&&a&&b&&c){
cout << "VALID"<<endl;
}else{
cout <<"INVALID"... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
template<class T> inline T sqr(T x) {return x*x;}
typedef vector<int> VI;
typedef vector<VI> VVI;
typed... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
enum { INVALID = 0x00,
IS_NUMBER = 0x01,
IS_UPPER = 0x02,
IS_LOWER = 0x04,
};
using namespace std;
int checkValidPassword(string password)
{
int checkPassword = 0;
if (password.length() < 6) return INVALID;
for (i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while ((line = br.readLine()) != null && !lin... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloa... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
bool check(string &s){
if(s.size() < 6) return false;
bool f1, f2, f3;
f1 = f2 = f3 = false;
for(int i=0;i<s.size();i++){
if('0' <= s[i] && s[i] <= '9') f1 = true;
if('A' <= s[i] && s[i] <= 'Z') f2 = true;
if('a' <= s[i] && s[i]... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
using namespace std;
int main(){
string pass;
string odata("QWERTYUIOPASDFGHJKLZXCVBNM");
string kdata("qwertyuiopasdfghjklzxcvbnm");
string sdata("1234567890");
bool o,k,s;
cin>>pass;
o=false,k=false,s=false;
for(int i=0;i<pass.size();i++){
if(odata.find(pass[i])!=-1... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
bool check(string ss) {
if(ss.size() < 6) return false;
bool is_num,is_c,is_C;
is_num = is_c = is_C = false;
rep(i,ss.size()) {
char c = ss[i];
if('0'<=c && c<='9') is_num = true;
if('a'<=c &... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
#include<cctype>
using namespace std;
bool solve(const string& s){
if(s.size() < 6) return false;
bool is1=false, is2=false, is3=false;
for(int i=0; i<s.size(); ++i){
if(isdigit(s[i])) is1=true;
if(islower(s[i])) is2=true;
if(isupper(s[i])) is3=true;
}
return ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
static int max;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String in = sc.next();
boolean ok = true;
boolean checkA = false;
boolean checkB = false;
boolean checkC = false;
if(in.length() < 6) ok = false;
else {
for(i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | // AOJ 2522
#include<iostream>
#include<string>
#define rep(i,a) for( int i = 0; i != (a); ++i )
int main()
{
std::string s;
std::cin >> s;
if( s.size() < 6 )
{
std::cout << "INVALID" << std::endl;
return 0;
}
int fl = 0;
rep( i, s.size() )
{
if( s[i] >= '0' && s[i] <= '9' )
fl |= 1;
if( s[i] >= '... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
bool l,s,m;
while(cin>>str){
l=s=m=true;
for(int i=0;i<str.size();i++){
if(str.size()<6){
break;
}
if(s)if('a'<=str[i]&&str[i]<='z')s=false;
if(l)if('A'<=str[i]&&str[i]<='Z')l=false;
if(m)if('0'<=str[i]&&str[i]<='9... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int l=0, u=0, count=0, num=0;
String s=sc.next();
if(s.length()>=6) count++;
for(int i=0; i<s.length(); i++) {
if(Character.isUpperCase(s.charA... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main(){
string str;
bool size = false , num = false , l = false , s = false;
cin >> str;
if(str.size() >= 6) size = true;
for(int i = 0 ; i < str.size() ; i++){
if('0' <= str[i] && str[i] <= '9') num = true;
if... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef tuple<int, int> duo;
#define TT template<typename T>
#define ET(T) typename T::value_type
TT inline T sq(T x){return x*x;}
TT inline T In(){T x;cin>>x;return x;}
TT inline int ubnd(T&v,ET(T) x){return upper_bound(begin... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<math.h>
#include<string>
#include<string.h>
#include<stack>
#include<queue>
#include<vector>
#include<utility>
#include<set>
#include<map>
#include<stdlib.h>
#include<iomanip>
using namespace std;
#define ll long long
#define ld long dou... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <climits>
#define LP(i,n) for(int i=0;i<n;i++)
#define Mset(x,v) memset(x,v,sizeof(x))
#define ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
using namespace std;
bool isIncluding( string p, char a, char b )
{
for( int i = 0; i < p.size(); i++ )
if( a <= p[i] && p[i] <= b )
return true;
return false;
}
int main()
{
string p;
cin >> p;
if( p.size() >= 6 && isIncluding( p, '0', '9'... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.println(solve(sc.next()) ? "VALID" : "INVALID");
}
static boolean solve(String s) {
if (s.length() < 6) return false;
int r = 0;
for (char c : s.toCharArray()) {
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int flag1 = 0;
int flag2 = 0;
int flag3 = 0;
cin >> s;
if(s.size() < 6) {
cout << "INVALID" << endl;
return 0;
}
for(int i = 0; i < s.size(); i++) {
if(s[i] > 96 && s[i] < 123)
flag1 = 1;
else if(s... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <set>
#include <cctype>
using namespace std;
typedef int (*pred)(int);
int main(){
string s;
cin >> s;
const int E = count_if(s.begin(), s.end(), (pred)isupper);
const int e = count_if(s.begin(), s.end(), (pred)islower);
const int d = cou... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
using namespace std;
bool hasNumber(string s){
for(size_t i = 0; i < s.size(); i++)
if(0 <= (s[i] - '0') && (s[i] - '0') <= 9)
return true;
return false;
}
bool hasUpper(string s){
for(size_t i = 0; i < s.size(); i++)
if(0 <= (s[i] - 'A') && (s[i] - 'A') < 26)
return tr... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <numeric>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <utility>
#include <sstream>
#include <complex>
#include <fstream>
using namespace std;
#def... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
string str; cin >> str;
bool ans = true;
if (str.size() < 6) ans = false;
else {
{ // suuzi
bool f = false;
for (int i = 0; i < str.size(); ++i) {
if ('0' <= str[i] && str[i] <= '9') f = true;
}
if (!f)... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
int main(){
char n[20];
int a,b,c;
a=0;
b=0;
c=0;
for(int i=0;i<20;i++){
n[i]=0;
}
cin >> n ;
for(int i=0;i<20;i++){
if((n[i]>='0')&&(n[i]<='9')){
a=1;
}
if((n[i]>='a... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
String s;
int i;
boolean a, b, c, d;
a = false; b = false; c = false; d = false;
s = sc.next();
if(s.length() > 5)a = true;
for(i = 0;i < s.length();i+... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | word = input()
while True:
if len(word)<6:
print('INVALID')
break
if word.find('0')==-1 and\
word.find('1')==-1 and\
word.find('2')==-1 and\
word.find('3')==-1 and\
word.find('4')==-1 and\
word.find('5')==-1 and\
word.find('6')==-1 and\
word... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <cctype>
#include <cstring>
using namespace std;
bool len, num, low, upp;
int main()
{
char s[1024];
scanf("%s", s);
len = strlen(s) >= 6;
for (int i = 0; s[i]; i++){
if (isupper(s[i])) upp = true;
if (islower(s[i])) low = true;
if (isdigit(s[i])) num = true;
}
printf(... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
private static boolean IsValid(String password){
if (password.length() < 6) {
return false;
}
if (!password.matches(".*[0-9].*")) {
return false;
}
if (!password.matches(".*[A-Z].*")) {
return ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <string>
#include <cstring>
#include <iostream>
#include <ciso646>
bool check(const std::string &pass)
{
if (pass.length() < 6) return false;
bool has_digit(false), has_upper(false), has_lower(false);
for (size_t i = 0; i < pass.length(); ++i)
{
char c = pass[i];
if (std::i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
// Register Phase
public class Main{
Scanner sc=new Scanner(System.in);
String s;
void run(){
s=sc.nextLine();
solve();
}
vo... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
if (5 < a.size() && any_of(a.begin(), a.end(), [](char& a) { return isdigit(a); }) && any_of(a.begin(), a.end(), [](char& a) { return islower(a); }) && any_of(a.begin(), a.end(), [](cha... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <cctype>
using namespace std;
int main(){
string s;
cin >> s;
int len = s.length();
bool digitFlg = false;
bool upperFlg = false;
bool lowerFlg = false;
for(int i = 0; i < len; i++){
if(isdigit(s[i])) digitFlg = true;
else if(isupper(s[i])) upperFlg = true;
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
using namespace std;
bool check(string s ){
if ( s.size() < 6 ) return false;
int d = 0, u = 0, l = 0;
for ( int i = 0; i < s.size(); i++ ){
char ch = s[i];
if ( '0' <= ch && ch <= '9' ) d++;
if ( 'a' <= ch && ch <= 'z' ) l++;
if ( 'A' <= ch && ch <= 'Z' ) u++;... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>
using namespace std;
int main (int argc, char *argv[]) {
string str;
cin>>str;
if (str.length() < 6) {
cout<<"INVALID"<<endl;
return 0;
}
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
int main() {
string pass;
cin >> pass;
bool flag = false;
if (pass.size() < 6u) goto fail;
rep (i, pass.size()) if (isdigit(pass[i])) flag = true;
if (!flag) goto fail;
flag = false;
rep (i, pass.size()) if (is... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T& a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template<class T> inline bool chmin(T& a, T... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.Scanner;
public class Main {
Scanner sc = new Scanner(System.in);
void run() {
String pass = sc.next();
boolean judge[] = new boolean[4];
if (pass.length() > 5) {
judge[0] = true;
}
for (int i = 0; i < pass.length(); i++) {
if (Character.isDigit(pass.charAt(i))) {
judge[1] = tru... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String regex = "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{6})";
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
int main() {
bool a, b, c, d;
a = b = c = d = false;
string s;
cin >> s;
if (6 <= s.size()) a = true;
for (int i = 0; i < s.size(); i++) {
if('0' <= s[i] && s[i] <= '9') b = true;
}
for (int i = 0; i < s.size(); i++) {
if('a' <= s[i] && s[i] <= 'z'... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
using namespace std;
void solve()
{
string password;
cin >> password;
bool flagLength = false;
bool flagNumber = false;
bool flagCapital = false;
bool flagSmall = false;
if (password.size() >= 6)
{
flagLength = true;
}
for (int i = 0; i < password.size(); ++i)
{
if... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | p=raw_input()
print "INVALID" if len(p)<6 or p.isalpha() or p.isdigit() or p.islower() or p.isupper() else "VALID" |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
#include<cstring>
#include<cctype>
using namespace std;
int main(){
string s;bool check[3]={false,false,false};
cin>>s;
for(int i=0;i<s.size();i++){
if(isdigit(s[i]))check[0]=true;
if(islower(s[i]))check[1]=true;
if(isupper(s[i]))check[2]=true;
}
cout<<((s.size()>=6&&check... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | a = input()
if len(a) < 6:
print("INVALID")
else:
m = 0
n = 0
l = 0
for i in range(len(a)):
if 48 <= ord(a[i]) <= 57:
m += 1
if 97 <= ord(a[i]) <= 122:
n += 1
if 65 <= ord(a[i]) <= 90:
l += 1
if m == 0 or n == 0 or l == 0:
prin... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include "bits/stdc++.h"
using namespace std;
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef long long ll;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define all(a) (a).begin(),(a).end()
#define pb push_back
bool solve(string s){
if( s.size()<6 )return false;
bool num=false,AL=false,al=false;
rep(i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<cstdio>
#include<iostream>
using namespace std;
int main() {
string str;
cin >> str;
int flg = 0;
if(str.size() > 5) flg = 1;
for(int i = 0; i < str.size(); i++) {
if(str[i] >= '0' && str[i] <= '9') flg |= 2;
if(str[i] >= 'A' && str[i] <= 'Z') flg |= 4;
if(str[i] >= 'a' && str[i] <= 'z') flg |= 8;
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
bool isValid = true;
bool isNExist = false, isSExist = false, isRExist = false;
string input;
cin >> input;
if(input.size() < 6) isValid = false;
for(int i=0; i < input.size(); i++){
if('0' <= input[i] && input[i] <=... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
bool isValid( string pw ) {
int len = pw.size();
if( len < 6 ) { return false; }
bool containsDigit = false;
bool containsLarge = false;
bool containsSmall = false;
for( int i = 0; i < len; i++ ) {
int c = pw[ i ];
if( ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <stdio.h>
bool containCap(char *s);
bool containNum(char *s);
bool containSml(char *s);
int strlen(char *s);
bool isValid(char *password);
int main(){
char s[30];
scanf("%s", s);
printf("%s\n", isValid(s) ? "VALID" : "INVALID");
return 0;
}
bool containCap(char *s){
for (char *... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sn = new Scanner(System.in);
System.out.println(isValid(sn.next())? "VALID": "INVALID");
}
static boolean isValid(String pass){
if(pass.length() < 6) return false;
boolean upper = false;
boolean lower = fal... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
if (str.size() < 6) {
cout << "INVALID" << endl;
} else {
bool num = false, big= false, small = false;
for (auto s : str) {
if ('0' <= s && s <= '9') num = true;
if ('a' <=... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<bits/stdc++.h>
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;
bool isValid(string &s){
if( s.size() < 6 ) return false;
bool digit = false, upper = false, lower = false;
rep(i,(int)s.size()) {
digit |= isdigit(s[i]);
upper |= isupper(s[i]);
lower |... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main() {
string a;
cin >> a;
int flg = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] >= '0'&&a[i] <= '9') {
if (!(flg & 1))flg += 1;
}
if (a[i] >= 'a'&&a[i] <= 'z') {
if (!(flg & 2))flg += 2;
}
if (a[i] >= 'A'&&a[i]... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<stdio.h>
#include<string.h>
char str[100];
int main(){
scanf("%s",str);
bool ok=true;
if(strlen(str)<6)ok=false;
bool OK=false;
for(int i=0;str[i];i++){
if('0'<=str[i]&&str[i]<='9')OK=true;
}
if(!OK)ok=false;
OK=false;
for(int i=0;str[i];i++){
if('a'<=str[i]&&str[i]<='z')OK=true;
}
if(!OK)ok=fal... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<cstdio>
#include<algorithm>
#include<string>
#include<iostream>
using namespace std;
int main(){
string str;
int cnt[4]={0,0,0,0};
cin>>str;
for(int i=0;i<str.size();i++){
if(str[i]>='a' && str[i]<='z') cnt[0]++;
else if(str[i]>='A' && str[i]<='Z') cnt[1]++;
else if(str[i]>='0' && str[i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<vector>
#include<string>
#include<cstdio>
#include<algorithm>
#include<map>
#include<cctype>
using namespace std;
int main(){
string s;
bool a=false,b=false,c=false,d=false;
cin >> s;
if( s.size() >= 6 ) a = true;
for(int i=0;i<s.size();i++){
if(isdigit(s[i])) b = true;
if(... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string>
#include<cctype>
using namespace std;
int checkNum(string);
int checkUpper(string);
int checkLower(string);
int main(){
string pass;
int judge = 0;
cin>>pass;
if(pass.length() < 6){
cout<<"INVALID"<<endl;
return 0;
}
judge = chec... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | /*
* 2522.cc: Register Phase
*/
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | s=input()
print('INVALID' if s.isalpha() or s.isdigit() or s.islower() or s.isupper() or len(s)<6 else 'VALID') |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | S = raw_input()
f1 = f2 = f3 = False
for s in S:
if s.isdigit(): f1 = True
if s.isupper(): f2 = True
if s.islower(): f3 = True
print "VALID" if len(S) >= 6 and f1 and f2 and f3 else "INVALID" |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include<iostream>
#include<string.h>
using namespace std;
int main(){
char pass[21];
int len;
int c1,c2,c3,c4;
while(cin >> pass){
len = strlen(pass);
c1 = 1; c2 = 1; c3 = 1; c4 = 1;
if(len >= 6){
c4 = 0;
}
for(int i = 0; i < len; i++){
if(pass[i] >= '0' && pass[i] <= '9'){
c1 = 0;
}
i... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <bitset>
#include <numeric>
#include <utility>
#include <iomanip>... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | s = input()
A = [str(i) for i in range(10)]
B = [chr(i) for i in range(97, 97+26)]
C = [chr(i) for i in range(65, 65+26)]
ng = "INVALID"
ok = "VALID"
if len(s) < 6:
print(ng)
exit()
x = 0
y = 0
z = 0
for i in s:
a = i in A
b = i in B
c = i in C
x += a
y += b
z += c
if a or b or c... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | p=raw_input()
print "INVALID" if len(p)<6 or p.islower() or p.isupper() or p.isalpha() or p.isdigit() else "VALID" |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <cstring>
using namespace std;
int main() {
string p;
cin >> p;
bool min_length, has_number = false, has_upper = false, has_lower = false;
min_length = 6U <= p.size();
for (int i=0; i<(int)p.size(); ++i) {
if (isdigit(p[i])) has_number = true;
if (is... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | import re
lst = input()
if len(lst) >= 6:
if re.findall("[0-9]",lst):
if re.findall("[A-Z]",lst):
if re.findall("[a-z]",lst):
print("VALID")
else: print("INVALID")
else: print("INVALID")
else: print("INVALID")
else: print("INVALID")
|
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | pas = input()
if len(pas) < 6 :
print("INVALID")
else :
num = 0
Lstr = 0
Sstr = 0
for i in range(len(pas)) :
if ord(pas[i]) >= 48 and ord(pas[i]) <= 57 :
num += 1
if ord(pas[i]) >= 97 and ord(pas[i]) <= 122 :
Lstr += 1
if ord(pas[i]) >= 65 and ord(pas... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin >> s;
bool ans=true;
if(s.size()<6) ans=false;
int a=0, b=0, c=0;
for(int i=0; i<s.size(); ++i){
if('0'<=s[i] && s[i]<='9') a++;
else if('A'<=s[i] && s[i]<='Z') b++;
else if('a'<=s[i] && s[i]<='z') ... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main(){
string s;
cin >> s;
bool len=false,fig=false,up=false,low=false;
if(s.size() >= 6) len = true;
for(int i=0;i<s.size();i++){
if(isdigit(s[i])) fig = true;
else if(isupper(s[i])) up = true;
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <algorithm>
#include <cstdlib>
#include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
if(s.size() >= 6
&& any_of(s.begin(), s.end(), [](char c) { return islower(c);})
&& any_of(s.begin(), s.end(), [](char c) { return isupper(c);})
... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <iostream>
using namespace std;
int main(void){
string s;cin>>s;
bool f=true,g=false;
if(s.size()<6)f=false;
for(int i=0;i<10;++i) if(s.find(i+'0')!=-1)g=true;
if(!g)f=false;
g=false;
for(int i='A';i<='Z';++i) if(s.find(i)!=-1)g=true;
if(!g)f=false;
g=false;
for(int i='a';i<='z';++i) if(s.... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | #include <stdio.h>
#include <cmath>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
using namespace std;
int main(){
char buf[21];
int length,small_count = 0,big_count = 0,num_count = 0;
scanf("%s",buf);
for(length = 0;buf[length] != '\0';length++);
if(length <= 5){
printf("INVALI... |
Problem: It is important to use strong passwords to make the Internet more secure. At the same time, it is very important not to reuse the same password. No matter how strong your password is, if the plaintext is leaked in one place, it will be very easy to break. Of course, if all applications hash passwords and use S... | s=str(input())
if len(s)<6 :
print("INVALID")
else:
num=0
ABC=0
abc=0
for i in range(len(s)) :
if ord(s[i])>=48 and ord(s[i])<=57:
num+=1
if ord(s[i])>=97 and ord(s[i])<=122:
ABC+=1
if ord(s[i])>=65 and ord(s[i])<=90:
abc+=1
if num==0 o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.