Problem C. Finite Field (Easy version)

Input file:Standard input   Time limit:5 sec
Output file:Standard output   Memory limit:512 Mb

Statement

You are to create .cpp file with implementation of num.h

Constructor of Num should store value modulo modulo. By default, modulo is equal to 0. In that case modulo operation should not be applied to value.

Copy constructor should only copy value value. modulo must be set to zero in copy constructor.

Materials

main.cpp

task.xml

num.h


0.155s 0.021s 23