入门篇(1)——入门模拟(3.6字符串处理)
B1009 说反话
notes
入门篇(1)——入门模拟(3.6字符串处理) B1009 说反话#include#include int main(){ char str[90]; gets(str); int len=strlen(str); for(int i=len;i>=0;){ for(int j=i;;j--){ if(str[j]==' '||j==-1){ for(int k=j+1;k notes 我觉得这个解法显得我脑子好灵光!时间复杂度O(n),空间复杂度O(n)!



