delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#include<cstdio>
using namespace std;
char* find(char *front,char *last,char n)
{
while(front<last)
{
if(*front==n) return front;
front++;
}
return NULL;
}
int main()
{
char s[1000],n;
int len=-1;
while(s[++len]=getchar(),s[len]!='\n');
n=getchar();
char *p=find(s,s+len,n);
if(p==NULL) printf("no\n");
else printf("%d\n",p-s+1);
return 0;
}