请问可不可以分析一下你的bool里面的内容?
by 智子·起源 @ 2018-09-08 12:52:20
~~~cpp
int cmp(string a,string b)
{
return a+b>b+a;
}
~~~
@[540217967qq](/space/show?uid=111739)
by 智子·起源 @ 2018-09-08 12:54:35
a+b b+a不是一样的吗?
by 智子·起源 @ 2018-09-08 12:56:31
@[AC机的朋友AC鸭](/space/show?uid=107232) get,谢谢大佬
by Outro5201 @ 2018-09-15 23:16:32
@[冯—xxk](/space/show?uid=90971) 我写的是 return a > b;
by Outro5201 @ 2018-09-15 23:17:13
@[LyIosing](/space/show?uid=110572) 嗯,知道问题了,谢谢。
by Outro5201 @ 2018-09-15 23:18:03
@[540217967qq](/space/show?uid=111739) 为什么是这样呢?
by Outro5201 @ 2018-09-15 23:19:15
@[我是SB](/space/show?uid=98864) 膜拜大佬
by Outro5201 @ 2018-09-15 23:19:33
@[干中李酉骐](/space/show?uid=115452) 字符串加法和int不一样
```cpp
string a="123";
string b="456";
则 a+b="123456";
而 b+a="456123";
```
a+b>b+a就是...自己理解一下
by thoq @ 2018-09-16 15:58:59
好的……
by 智子·起源 @ 2018-09-20 12:27:50