Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
贴个1A简短C代码~#include <stdio.h> int main() { char a[100100],b[100100]; int i,j; while(scanf("%s%s",a,b) != EOF) { for(i=j=0;b[j];j++) if(a[i] == b[j]) i++; printf("%s\n",a[i] ? "No":"Yes"); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator