题目链接:https:icpcarchive.ecs.baylor.eduindex.php?optioncom_onlinejudge 6 const int N = 500010; 7 int a[N], pre[N], sum[N]; 8 char s[N]; 9 int len, n;10 int main()11 {12 while(gets(s) != NULL)13 {14 n = 0;15 len = strlen(s) + 1;16 for(i
题目链接:https:icpcarchive.ecs.baylor.eduindex.php?optioncom_onlinejudge 6 const int N = 500010; 7 int a[N], pre[N], sum[N]; 8 char s[N]; 9 int len, n;10 int main()11 {12 while(gets(s) != NULL)13 {14 n = 0;15 len = strlen(s) + 1;16 for(int i = 0; i
UVALive 7325Book Borders