MikeMirzayanov's blog

By MikeMirzayanov, 9 years ago, translation, In English,
Hello!

Despite the fact that Artem Rakhov prepared the round - I'm writing this post, as he is currently training for the ACM-ICPC World Finals, writing a contest with the teammates.

Contest has been prepared by: Artem Rakhov, Gerald Agapov (congratulations on the "redness") and Maria Belova.

Wish you high rating,
MikeMirzayanov

 
 
 
 
  • Vote: I like it
  • +15
  • Vote: I do not like it

9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
what is pretest 3 of COINS?
  • 9 years ago, # ^ |
      Vote: I like it -14 Vote: I do not like it
    No comments. Testdata is not available for participants.
    • 9 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      kindly give an example of Impossible test case
      • 9 years ago, # ^ |
          Vote: I like it +1 Vote: I do not like it
        For example:
        A>B
        B>C
        C>A
        Output: Impossible
    • 9 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it
      If anyone think that by some testcase  he can solve a better problem that he can solve as usual,then I think anyone of us should help him....
      • 9 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        I totally agree.
      • 9 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        Look at the time that question was asked. Mike meant that during the contest the test cases are not available.
  • 9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    answer test case 3 has "Impossible.",but you answer have been "Impossible. "
    answer has without dot.
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Problem D:
Second sample:
input:
6 3
000000 2
010100 4
111100 0
Is it correct?

May be:
6 3
000000 2
010100 4
000011 0
?
  • 9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    6 3
    000000 2
    010100 4
    111100 0
    
    There are no codes that do not contradict the m system responses. Please, you "questions" interface on the problemset page.
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Hm, I thing it's really interesting.

Recruit flushfile
Submits:
A - 0:46, B - 0:49, E - 0:52
Hacks:
A - jackoneill (submitted in 0:46, hacked in 0:47), gigacoder (submitted in 0:56, hacked in 0:57)
B - jackoneill (submitted in 0:48, hacked in 0:50), gigacoder (submitted in 0:56, hacked in 0:57)
E - jackoneill (submitted in 0:52, hacked in 0:54), gigacoder (submitted in 0:56, hacked in 0:58)

Recruit resetfile
Submits:
A - 1:00, B - 1:01, E - 1:01
Hacks:
A - delphisourcer (submitted in 1:00, hacked in 1:01)
B - delphisourcer (submitted in 1:00, hacked in 1:01)
E - delphisourcer (submitted in 1:00, hacked in 1:02)
  • 9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    O!

    Recruit closefile
    Submits:
    A - 1:07, B - 1:07, E - 1:08
    Hacks:
    A - gigacoder2 (submitted in 1:06, hacked in 1:07)
    B -
    gigacoder2 (submitted in 1:06, hacked in 1:08)
    E -
    gigacoder2 (submitted in 1:07, hacked in 1:09)
    • 9 years ago, # ^ |
      Rev. 5   Vote: I like it +4 Vote: I do not like it
      And they all are writing on Delphi/FPC
      • 9 years ago, # ^ |
          Vote: I like it +6 Vote: I do not like it
        Finally, resetfile, closefile and flushfile have "+" with A,B and "-" with E
        • 9 years ago, # ^ |
            Vote: I like it +6 Vote: I do not like it
          This man has spoofed himself only....It's kind of morrons,that are trying ti cheat with their rank.It seems me funny btw)
          Take my advice- dont even pay ur attetion for them:)
9 years ago, # |
  Vote: I like it +6 Vote: I do not like it
What is test 19 of problem C?
  • 9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    I want to know, too. Please help!
  • 9 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    It's such a case where the first solution (according to permutation) is not necessarily "lexicographically minimum one". You may try following case:

    AAA
    AAA
    AAAA
    AAAA
    AAAAAA
    AAAAAA

    Hope it'll help.
    PS: Sorry for my weak English.
    • 9 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it
      Is the solution is?
      AAA...
      A.A...
      A.A...
      AAAAAA
      ..A..A
      ..AAAA
      • 9 years ago, # ^ |
        Rev. 2   Vote: I like it +3 Vote: I do not like it
        I know my bug of my solution.

        The compare function can *not* be the comparison of a string of all the characters in the map.

        It should be comparison the first line of two Maps, if they are the same, compare the second ones, otherwise return the smaller one.

        Attach the code of the struct Map :
        struct Map {
        char data[33][33];
        int n, m;

        string getString(int n) const { // get line n
        string ret = "";
        for (int j = 0; j < m; j ++) {
        ret.push_back(data[n][j]);
        }
        return ret;
        }

        bool operator<(Map o) const {
        for (int i = 0; i < n; i ++) {
        string a = getString(i);
        string b = o.getString(i);
        if (a == b) {
        continue;
        }
        else {
        return a < b;
        }
        }
        return false;
        }
        };

        Then, I got an AC.
        • 9 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it
          Thanks. AC,too. Compare each line, not every char in a string.
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
What's the test 16 of problem C please?
9 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it
Very ambiguous problem definitions regarding problem A.

The first line contains the single number n (1 ≤ n ≤ 500) — the given integer

If the given integer is a triangular number output YES, otherwise output NO

Is the n specifies range of triangular number(T1 - T500) or the integer to be checked ??? 


9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Integer to be checked.
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it
In today's round ;I noticed that the test cases are available after the round; 
It's a great improvement in the codeforces ; Thanks to all of the organizers for their efforts .
But about codeforces round 44 I want the test case # 7 for problem E [Canon] ;
it gives me a time limit exceeded problem.
If i re-submit the code now ; may the test cases appear in my submissions 
Thanks in advance;