#CF2218A. The 67th Integer Problem
The 67th Integer Problem
题目描述
给定整数 。选择整数 ,使 最大。若有多个答案,输出任意一个。
输入格式
第一行整数 。接下来 行,每行一个整数 。
输出格式
每组输出一个整数 ,满足 且最优。
样例
3
1
3
5
2
4
6
数据范围
,。
来源
Codeforces Round 1090 (Div. 4), Problem A - The 67th Integer Problem
给定整数 x。选择整数 y,使 min(x,y) 最大。若有多个答案,输出任意一个。
第一行整数 t。接下来 t 行,每行一个整数 x。
每组输出一个整数 y,满足 −67≤y≤67 且最优。
3
1
3
5
2
4
6
1≤t≤6767,−67≤x≤67。
Codeforces Round 1090 (Div. 4), Problem A - The 67th Integer Problem