首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
mlx
2026年3月27日 17:01
编排字符串 题解:
P1447
回复 0
|
赞 1
|
浏览 70
#include<iostream> using namespace std; const int N=110; int m; char s[N][N]; int main() { int m; cin>>m; for(int i=0;i<m;i++) { scanf("%s",s[i]); int cnt=0; for(int j=i;j>=0;j--) { cnt++; ...
禾火
2026年3月23日 22:46
编排字符串 题解:
P1447
回复 0
|
赞 0
|
浏览 69
#include<bits/stdc++.h> using namespace std; char str[100][20]; int main() { int m; cin >> m; for(int i = 0;i < m;i++) { scanf("%s",str[i]); } fo...
wenganzhong
2026年3月22日 22:20
编排字符串 题解:C语言——使用单链表解决
P1447
回复 0
|
赞 0
|
浏览 43
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #define maxsize 1005 typedef struct LNode { char str[maxsize]; struct LNode* next; }LNode,*LinkList; //删除最后一个链表结点 void delElme(LinkList L) ...
Heart997
2026年3月22日 15:44
编排字符串 题解:c++,vector倒序输出
P1447
回复 0
|
赞 2
|
浏览 81
#include<bits/stdc++.h> using namespace std; int main(){ int m; cin>>m; vector<string> v; while(m--){ string s; cin>...
曾不会
2026年2月3日 16:59
编排字符串 题解:
P1447
回复 0
|
赞 5
|
浏览 278
#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
|
赞 9
|
浏览 328
#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
|
赞 11
|
浏览 1.2k
#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.3k
#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
|
赞 11
|
浏览 9.6k
#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(...
题目
编排字符串
题解数量
9
发布题解
在线答疑
热门题解
1
编排字符串(c++)
2
编排字符串 题解:使用vector模拟
3
编排字符串 题解:
4
编排字符串 题解:
5
c++
6
编排字符串 题解:c++,vector倒序输出
7
编排字符串 题解:
8
编排字符串 题解:C语言——使用单链表解决
9
编排字符串 题解: