Matrius esparses P64949


Statement
 

pdf   zip   main.cc

Public test cases
  • Input

    create a 4
    print a
    #
    set a 0 0 3
    set a 0 2 4
    set a 1 1 6
    set a 1 3 1
    set a 3 1 2
    print a
    #
    get a 0 0
    get a 0 1
    #
    create b 4
    set b 0 0 -3
    set b 2 3 9
    print b
    #
    add a b
    print a
    

    Output

    0 0 0 0
    0 0 0 0
    0 0 0 0
    0 0 0 0
    
    3 0 4 0
    0 6 0 1
    0 0 0 0
    0 2 0 0
    
    3
    0
    
    -3 0 0 0
    0 0 0 0
    0 0 0 9
    0 0 0 0
    
    0 0 4 0
    0 6 0 1
    0 0 0 9
    0 2 0 0
    
  • Information
    Author
    Jordi Petit
    Language
    Catalan
    Official solutions
    C++
    User solutions