NOI Online入门组#3立即救助
发布时间
阅读量:
阅读量
一个基础的模拟案例~~
其核心在于检查当前单词前后所对应的字母是否满足题目的具体条件。
在竞赛过程中并未想到更优的解决思路,最终编写出的程序虽成功通过测试,但整体结构较为杂乱。
#include <bits/stdc++.h>
using namespace std;
int n,ans[201],maxn=0;
struct node{
string s,t,k;
}a[201];
int p[201];
inline void read(register int &x){
x=0;register int f=1;register char c=getchar();
while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
while(c>='0'&&c<='9')x=(x<<3)+(x<<1)+(c^48),c=getchar();
x*=f;
}
int main(){
// freopen("save.in","r",stdin);
// freopen("save.out","w",stdou
全部评论 (0)
还没有任何评论哟~
