o(︶︿︶)o 唉跪烂了……

B题由于考虑的不周全WA了3次……

C题由于#include了<cmath>,而我函数声明的是pow(LL a,LL b)但调用的时候 【没!有!把!n!的!数据类型!!改成!long long !!!】所以触发了自动类型转换……就调用成cmath库里的了!!!

教训:

  以后自己写函数名的时候尽量避开pow等敏感词(NOIP时候的pipe事件……)可以首字母大写,或者改个名字比如pow_mod


 

A:

  统计题……考你会不会C++(或其他语言……)

  统计一下是否26个英文字母都出现了即可,大小写均可。(妈蛋考试的时候Dev-C++突然崩溃了,害我还得重启电脑,没本机跑过一遍不敢交啊……万一CE就是50分QAQ)

 1 //CF #295 div.2 A
 2 #include<cmath>
 3 #include<vector>
 4 #include<cstdio>
 5 #include<cstring>
 6 #include<cstdlib>
 7 #include<iostream>
 8 #include<algorithm>
 9 #define rep(i,n) for(int i=0;i<n;++i)
10 #define F(i,j,n) for(int i=j;i<=n;++i)
11 #define D(i,j,n) for(int i=j;i>=n;--i)
12 using namespace std;
13 int getint(){
14     int v=0,sign=1; char ch=getchar();
15     while(!isdigit(ch)) {if(ch=='-') sign=-1; ch=getchar();}
16     while(isdigit(ch))  {v=v*10+ch-'0'; ch=getchar();}
17     return v*sign;
18 }
19 const double eps=1e-8;
20 typedef long long LL;
21 /*******************template********************/
22 bool a[1000];
23 char s[1000];
24 
25 int main(){
26     
27     int n=getint();
28     scanf("%s",s);
29     rep(i,n)
30         if (s[i]>='A' && s[i]<='Z') a[s[i]-'A']=1;
31         else a[s[i]-'a']=1;
32     bool sign=1;
33     rep(i,26)
34         if (!a[i]) sign=0;
35     puts(sign ? "YES" : "NO");
36     return 0;
37 }
View Code

相关文章: