文章分类 -  ACM

摘要:#include<bits/stdc++.h> using namespace std; int n,m,k; queue<int> q; stack<int> s; vector<int> ans[1010]; int anscnt=-1; void newstack(){ anscnt++; a 阅读全文
posted @ 2025-03-28 16:16 transformert 阅读(10) 评论(0) 推荐(0)
摘要:代码如下: class Solution { public: string reverseWords(string s) { vector<string> v; for(int i=0;i<s.size();i++){ if(s[i]!=' '){ string tmp=""; int j; for 阅读全文
posted @ 2025-03-27 18:24 transformert 阅读(16) 评论(0) 推荐(0)