TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4821
  • Problem
  • P4821方阵
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 1.5s,512m
    Description

    Input Format

    Output Format

    Sample Input

    3
    2 3 3
    6 6 6
    192 608 17

    Sample Output

    498
    890162573
    631910143

    Hint


    Source  2018 雅礼集训