_Maverick_ @ 2023-09-28 12:44:23
#include<bits/stdc++.h>
using namespace std;
int main()
{
char a[1000+10];
cin>>a;
int s=0,j=0;
int n=strlen(a);
for(int i=1;i<=n;i++){
if(a[i]>='0'&&a[i]<='9'){
j++;
s+=a[i]*j;
}
}
return 0;
}
by sss12 @ 2023-09-28 12:53:45
@myh00198100 Right的情况呢?
by dgy234557666 @ 2023-09-28 12:58:17
题目呢?
by gtafics @ 2023-09-28 12:59:32
@dgy234557666 右边“关联题目”呀
by sss12 @ 2023-09-28 13:00:09
@dgy234557666 在右边的关联题目
by _Maverick_ @ 2023-09-28 13:04:45
哦哦
by dgy234557666 @ 2023-09-28 13:10:53
输出呢?s%11呢?if(s==10)呢?
by dgy234557666 @ 2023-09-28 13:12:26
@myh00198100