Note: This article is available in Chinese only. 本文暂无英文版本。
View original
codeforces #323 div 2 B. Robot's Task(又是暴力?
Related
codeforces #323 div 2 C. GCD Table (暴力?)
C. GCD Table
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
The GCD table G of size n × n for an array of positive integers a of length n is defined by formula