Search found 5 matches

by gary
Wed Jan 05, 2005 4:26 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33943

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 ...
by gary
Sun Jan 02, 2005 11:10 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33943

Evan Tsang wrote:Maybe it's because you print a blank line after the last solution.
I try your suggestion, and still GOT WA. :(
by gary
Sun Jan 02, 2005 7:06 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33943

Are you taking care of printing new lines well ? multiple input problems often cause WA for wrong handling or blank lines. For example, two or three blank lines might mean a 'case' separated by two blank lines. so the output should be what ever the problem specification says about 'blank' cases ...
by gary
Sat Jan 01, 2005 8:03 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33943

Raiyan Kamal wrote:here is my output for the cases you have given here.
Both of them are same.

could anyone help me?
(I still don't know why I got WA, so strange!!)
by gary
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 ...

Go to advanced search