|
此题我所采用的算法:
1、读入字符串到一字符数组中;
2、对该数组排序(字典序);
3、输出。
提交程序后,评判结果显示十组测试数据只有第9组正确,结果一看详细信息。真想不到出这么大一个bug。
=================/test_0.out
Right:
f f f f w d
-----------------
Your:
d f f f f w
###############################################################################
=================/test_5.out
Right:
q s u o
-----------------
Your:
o q s u
###############################################################################
=================/test_1.out
Right:
j s s u h
-----------------
Your:
h j s s u
###############################################################################
=================/test_4.out
Right:
m o q x i
-----------------
Your:
i m o q x
###############################################################################
=================/test_2.out
Right:
j j j k i
-----------------
Your:
i j j j k
###############################################################################
=================/test_8.out
Right:
s x k
-----------------
Your:
k s x
###############################################################################
=================/test_7.out
Right:
m o s w x j
-----------------
Your:
j m o s w x
###############################################################################
=================/test_3.out
Right:
q s w l
-----------------
Your:
l q s w
###############################################################################
=================/test_6.out
Right:
e f h i j o o s d
-----------------
Your:
d e f h i j o o s
############################################################################### |
|