codeforces #323 div 2 A. Asphalting Roads(暴力
相关文章
codeforces #323 div 2 C. GCD Table (暴力?)
·960 字·2 分钟
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
codeforces #322 div 2 D. Three Logos (枚举)
·1452 字·3 分钟
D. Three Logos
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Three companies decided to order a billboard with pictures of their logos. A billboard is a big square board. A logo of each company is a rectangle of a non-zero area.
codeforces #519 A A. Multiplication Table (暴力)
·385 字·1 分钟
A. Multiplication Table
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Let’s consider a table consisting of n rows and n columns. The cell located at the intersection of i-th row and j-th column contains number i × j. The rows and columns are numbered starting from 1.