I rewrite my code, and get AC. :D
(Maybe my old code has a wrong sort function, so I use STL's sort.)
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
class DNA {
string content;
int count;
public:
// private:
int unsortedness() const ...
Search found 5 matches
- Wed Jan 05, 2005 4:26 pm
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 33943
- Sun Jan 02, 2005 11:10 am
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 33943
- Sun Jan 02, 2005 7:06 am
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 33943
- Sat Jan 01, 2005 8:03 pm
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 33943
- Sat Jan 01, 2005 1:33 pm
- Forum: Volume 6 (600-699)
- Topic: 612 - DNA Sorting
- Replies: 122
- Views: 33943
612 - DNA Sorting
I'm sure I have used "multiple input".
this is test input file
http://www.csie.nctu.edu.tw/~chchu/acm/online/v6/test/612i.txt
this is output file
http://www.csie.nctu.edu.tw/~chchu/acm/online/v6/test/612o.txt
I use 612i.txt to test this program, and the output and 612o.txt are same exactly.
The ...
this is test input file
http://www.csie.nctu.edu.tw/~chchu/acm/online/v6/test/612i.txt
this is output file
http://www.csie.nctu.edu.tw/~chchu/acm/online/v6/test/612o.txt
I use 612i.txt to test this program, and the output and 612o.txt are same exactly.
The ...