摘要: class Solution { public: bool check(char c) { if(c=='+') return true; if(c=='-') return true; if(c>='0'&&c<='9') return true; return false; } int strT 阅读全文
posted @ 2023-05-18 20:57 穿过雾的阴霾 阅读(19) 评论(0) 推荐(0)
摘要: class Solution { public: int getSum(int n) { int res=n; //if(n>0) res+=getSum(n-1); (res>0)&&(res+=getSum(n-1)); return res; } }; 阅读全文
posted @ 2023-05-18 20:35 穿过雾的阴霾 阅读(17) 评论(0) 推荐(0)
摘要: class Solution { public: int q[4010]; bool notexist[4010]; void move(int &j,int n)//后移 { do { j++; j=j%n; } while(notexist[j]!=false); } int lastRemai 阅读全文
posted @ 2023-05-18 20:06 穿过雾的阴霾 阅读(16) 评论(0) 推荐(0)