Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:贴个1A简短C代码~

Posted by xxmdd at 2016-08-04 17:33:48 on Problem 1936
In Reply To:贴个1A简短C代码~ Posted by:140930021 at 2016-08-04 11:43:28
> #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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator