poj3617专题

POJ3617(字典序最小问题)

书中43页 此题有坑点,PE了40分钟.也是醉了....题目要求每80个字符才换行,而且最后一个如果恰好就不用换,这不是无聊嘛....... #include <iostream>#include <cstdio>#include <cstring>using namespace std;int n,m;char S[2100],P[2100];int main(){#ifd

POJ3617 Best Cow Line(字典序最小问题)

题目: Best Cow Line Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20680 Accepted: 5673 Description FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" c