PHANTOM_23's blog

By PHANTOM_23, history, 11 months ago, In English

Problem

Submission

Checker comment "wrong answer Test 226: Expected -1, got a Tree !! (test case 226)" I have checked the -1 condition in the beginning

if(m<n || m>n*(n+1ll)/2ll)
    {
        cout<<"-1\n";
        return;
    }

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it