B. Fedya and Maths time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Fedya studies in a gymnasium. Fedya's maths hometa
B. Fedya and Maths time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Fedya studies in a gymnasium. Fedya's maths hometas
AOAPC I: Beginning Algorithm Contests (Rujia Liu) Volume 1. Elementary Problem Solving::Maths-Misc 113 - Power of Cryptography 10161 - Ant on a Chessboard 253 - Cube painti
题面: 题意: 给定三个数 A , B , C A,B,C A,B,C 每个数以以下的形式给出。 先给出一个正整数 n n n,表示这个数有 n n n 位,然后给出 n n n 个十进制非负整数,表示该数从高位到低位每个数位上的数的十进制表示。 若在某一进制下 A ∗ B = C A*B=C A∗B=C,输出符合要求的进制。 题解: 考虑当前 k k k 进制下,如果 A