首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
曾不会
2026年2月3日 16:59
编排字符串 题解:
P1447
回复 0
|
赞 3
|
浏览 69
#include<stdio.h> #include<stack> #include<string> using namespace std; int main() { int n; scanf("%d",&n); stack<string> hash; stack<string> tmp; f...
yauqq
2026年1月30日 17:42
编排字符串 题解:
P1447
回复 0
|
赞 1
|
浏览 71
#include <iostream> using namespace std; int main(){ int m; cin >> m; string str[m]; for(int i=0;i<m;i++){ cin >> str[i]; for(int j=0;j<=i && j<4;j++){ cout << (j+1) << "=" << str[i-j] << " "; } cout <&l...
RingoCrystal
2025年2月23日 17:26
编排字符串 题解:使用vector模拟
P1447
回复 0
|
赞 2
|
浏览 900
#include <bits/stdc++.h> using namespace std; int main() { int n; vector<string>a; while(cin>>n){ while(n--){ string s;cin>>s; a.insert(a.begin(),s); if(a.size()>4)a.pop_back(); for(int i=0;i<a.size();i++){ ...
My_opt
2022年4月30日 16:42
c++
P1447
回复 0
|
赞 3
|
浏览 5.2k
#include <iostream> using namespace std; const int N = 110; int m; string s[N]; int main() { cin >> m; for (int i = 0; i < m; i ++ ) { cin >> s[i]; int cnt = 1, t = i; while (t >= 0 && cnt <= 4) cout << cnt ++ << "=" &...
A1120161820
2020年3月8日 10:29
编排字符串(c++)
P1447
回复 1
|
赞 4
|
浏览 9.5k
#include<iostream> #include<string> #include<vector> using namespace std; int main() { int m; vector<string> vstr; cin >> m; for (int i = 1; i <= m; i++) { string s; cin >> s; vstr.push_back(s); int k = 1, j; for (j = vstr.size(...
题目
编排字符串
题解数量
5
发布题解
在线答疑
热门题解
1
编排字符串(c++)
2
c++
3
编排字符串 题解:
4
编排字符串 题解:使用vector模拟
5
编排字符串 题解: