Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:求助!!!为什么总是RE?自己运行就没问题

Posted by xiekangfei at 2022-09-26 21:09:31 on Problem 1007
In Reply To:求助!!!为什么总是RE?自己运行就没问题 Posted by:a806855059 at 2016-07-17 20:12:50
> #include <标准字符> > #include <字符串.h> > > 国际主 () { > 整数 n,m; > 扫描(“%d %d”, &n, &m); > 字符 dna[50][11]; >字符温度 [11]; > inint 度量 [50]; > 对于 (int i = 0; i < m; i++) { >扫描(“%s”, dna[i]); > 整型 t = 0; >对于 (int k = 0; j < n; j++) { > 对于 (int k = j; k <n;k++) { > 如果 (dna[i][j] - dna[i][k] > 0) { > t++; > } > } > } >度量 [i] = t;> } > (整数 i = 0; i < m; i++) { > 整数低 = i; > (整数 j = i; j < m; j++) { > 如果 (测量[j] <测量值 [低]) { >低 = j; > } > } > strcpy(温度, dna[低]); > strcpy(dna[低], dna[i]); > >字符串(dna[i], temp); >int tmp = 测量 [i]; >测量 [i] = 测量 [i] ; >测量 [低] = tmp; > } > 用于 (int i = 0; i < m; i++) {>打印(“%s\n”, dna[i]);> } > 返回 0;> } 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator