主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
发布
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
xjnotywlq
2024年3月14日 17:38
字符串对齐 题解:qsort
P2006
回复 0
|
赞 0
|
浏览 151
#include <stdio.h> #include <stdlib.h> typedef struct node{ char s[10000]; int forlen; }node; int cmp(const void*a,const void*b){ struct node a1=*(struct node*)a; struct node b1=*(struct node*)b; return a1.forlen-b1.forlen; } int main() { int...
小王桐学
2024年2月27日 16:34
字符串对齐 题解:C
P2006
回复 0
|
赞 0
|
浏览 113
#include <stdio.h> #include <string.h> int main() { int n,i,j,k,maxj = 0; char c,s[100][1000]; scanf("%d",&n); for(i = 0; i < n; i++) scanf("%s",s[i]); scanf(" %c",&c); for(i = 0; i < n; i++) { j = 0; while(j < strlen(s[i])) { if(s...
题目
字符串对齐
题解数量
2
发布题解
热门题解
1
字符串对齐 题解:C
2
字符串对齐 题解:qsort