#8#10 有人知道测点么

P1953 易语言

不如把代码贴出来
by Glacial_Shine @ 2023-09-11 17:15:32


@[konjac_HZX](/user/363139) 你AC了么 如果AC了你就会看到我刷屏的提交记录
by lao_wang @ 2023-09-11 17:23:21


@[konjac_HZX](/user/363139) ``` #include<bits/stdc++.h> #include<stack> using namespace std; string s1 , s2 , temp ; int main() { cin >> s1 ; if((s1[0]=='0'||s1[0]=='1')&&s1.size()==1) { long long n=s1[0]-'0' , num=0 ; while(cin >> temp) { bool ant = 0 ; for(int i=0; i<temp.size(); i++) { if(temp[i]>='0'&&temp[i]<='9') { if(!ant) { ant = 1 ; cout << n ; } } else cout << temp[i] ; } if(num) { cout << endl ; n++ ; } else cout << " " ; num++ ; num %= 2 ; } } else { cin >> s2 ; long long num = 0 , n = 0 ; string t ; for(int i=0; i<s1.size(); i++) if(s1[i]>='0'&&s1[i]<='9') t += s1[i] ; for(int i=t.size()-1,j=1; i+1; i--,j*=10) n += (t[i]-'0')*j ; while(cin >> temp >> temp) { bool ant = 0 ; long long j = 0 ; for(int i=0; s1[i]; i++) { if(s1[i]>='0'&&s1[i]<='9') { if(!ant) { ant = 1 ; cout << n ; } } else cout << s1[i] ; } cout << " " ; ant = 0 ; for(int i=0; s1[i]&&s1[i]!='.'; i++) { if(s1[i]>='0'&&s1[i]<='9') { if(!ant) { ant = 1 ; cout << n ; } } else cout << s1[i] ; } if(!t.size()) cout << n ; cout << '.' ; ant = 0 ; for(int i=0; s2[i]; i++) { if(s2[i]>='0'&&s2[i]<='9') { if(!ant) { ant = 1 ; cout << n ; } } else cout << s2[i] ; } n++ ; cout << endl ; } num++ ; num %= 2 ; } return 0 ; } ```
by lao_wang @ 2023-09-11 17:24:56


@[konjac_HZX](/user/363139) 或者可以帮我造几个数据qwq
by lao_wang @ 2023-09-11 17:27:59


|