Tên đăng nhập Điểm Bài tập ▾ Giới thiệu
18401 197 2
18402 4012 2
18403 2252 2
18404 392 2
18405 197 2
18406 3122 2
18406 3122 2
18406 3122 2
18406 3122 2
18410
HoangLong_0608
Trần Hoàng Long
1192 2
18411 197 2
18411 197 2
18413 102 2
18414
vubao5alt
Vũ Gia Bảo
897 2
18414
vuviettien5a
Vũ Việt Tiến
897 2
18416 197 2
18416 197 2
18418 802 2
18419 897 2
18420 397 2
18421 1982 2
18422 177 2
18423 197 2
18423 197 2
18425
truonghoangdat1104
Nguyễn Văn Nghĩa
1097 2
18426 492 2
18427
ngnhuy2607
Nguyễn Công Huy
392 2
18427 397 2
18429 1529 2
18430 858 2
18431 897 2
18432 1811 2
18433 897 2
18434 2642 2
18435 1982 2
18436 897 2

Thanh

18437
cocacola 830
Phan Minh Quân
858 2
18438 234 2
18439 103 2
18440 858 2
18441 897 2
18441 897 2
18443 197 2
18444 2357 2
18445 897 2
18446 297 2

Helooo everyone

18446 297 2
18448 406 2
18449 803 2
18450 297 2
18451 1239 2
18452 148 2
18453 2134 2
18454 897 2
18455 197 2
18456 336 2
18457 576 2
18458 3142 2
18459 254 2
18460 177 2
18460 177 2
18462 862 2

include <bits/stdc++.h>

using namespace std;
int prime (int n){
if (n<2) return 0;
for (int i=2;i<=sqrt(n);++i){
if (n%i==0) return 0;
}
return 1;
}
int main(){
int n,q,d=0,a[26]={};
string s,st;
freopen("prime_string.inp","r",stdin);
cin>>q;
for (int k=0;k<q;k++){ st=""; d=0; cin>>s;
n=s.length();
int tam=0,j=0;
for (int i=0;i<n;i++){
a[int(s[i])-97]++;
}
for (int i=0;i<26;i++){
if(a[i]==1)
d++;
}
if (prime(d)) cout<<"YES";
else
cout<<"NO";
cout<<endl;
}
return 0;}

18463 1134 2
18464 848 2
18465 2062 2
18466 129 2
18467 297 2
18468 120 2
18469 3327 2
18470 1982 2
18471 492 2

tôi mới học lập trình xin hãy chỉ bảo tôi nhiều hơn

18472 1881 2
18473 197 2
18474 949 2
18475 392 2
18475 392 2
18477 1549 2
18477 1549 2
18479 392 2
18480 197 2
18481 392 2
18482 117 2

dfdfdfdfdfdfddfdfdfdfdfdfdfdfdfdfdfddfdsfsdvsdfgwertgerghethbrthr htrgbnryjrthetfgbtryhewghjstghweruwtjwtaedfgdbrtyhth werhethfgere5wur6jrhfbjkdbkjsdkgkehrithiwuhto2q38u5y98trgu5w3ugiebrjhvbjerthkerhri

18483 129 2
18484 492 2
18485 1092 2
18486 197 2
18487 897 2
18488 197 2
18488 197 2
18490 126 2
18491 197 2
18491 197 2
18491 197 2
18494 392 2
18495 148 2
18496 197 2
18497 129 2
18498 248 2
18499 197 2
18500 897 2