A. The 67th Integer Problem

time limit per test

1 second

memory limit per test

256 megabytes

Welcome to the New World, O Esteemed Earthly Visitor. You've been summoned by Macaque, a primate with four legs, a god complex and a terminal addiction to the word "trivial". You are Undertaking a Journey of Great Importance. Such Incredible Importance. No Journey Will EVER be as IMPORTANT as this one (and nothing this narrator says will sound so distinctly... orange again). You are implored to cooperate with Macaque, for his wrath (and joblessness) are unending. There is no room for error or incompetence. Lousiness shall be met with the full force of the law.

Macaque is given an integer x. Your task is to choose an integer y such that the value of min(x,y)∗ is maximized.

If there are multiple valid y, you may output any of them.

∗min(x,y) is defined as the minimum of integers x and y.

Input

Each test contains multiple test cases. The first line contains the number of test cases t (1≤t≤6767). The description of the test cases follows.

The only line of each test case contains a single integer x (−67≤x≤67).

Output

For each test case, output one integer y (−67≤y≤67) such that min(x,y) is maximized.

Example

Input

Copy

复制代码
3
1
3
5

Output

Copy

复制代码
2
4
6

Note

In the first case, 2 is a possible answer because min(1,2)=1, which can be shown to be maximal.

解题说明:水题,因为x最大为67,输出67即可。

cpp 复制代码
#include <stdio.h>

int main() 
{
    int t, x;
    scanf("%d", &t);
    while (t--) 
    {
        scanf("%d", &x);
        printf("67\n");
    }
    return 0;
}
相关推荐
2zcode6 小时前
运动模糊图像复原的MATLAB仿真与优化
开发语言·matlab
袁雅倩19976 小时前
当吸尘器、筋膜枪都用上Type-C,供电方案该怎么选?浅谈PD取电芯片ECP5702的应用
c语言·开发语言·支持向量机·动态规划·推荐算法·最小二乘法·图搜索算法
Aaswk7 小时前
Java Lambda 表达式与流处理
java·开发语言·python
万邦科技Lafite7 小时前
京东item_get接口实战案例:实时商品价格监控全流程解析
java·开发语言·数据库·python·开放api·淘宝开放平台
Cyber4K8 小时前
【Python专项】进阶语法-系统资源监控与数据采集(1)
开发语言·python·php
Le_ee8 小时前
ctfweb:php/php短标签/.haccess+图片马/XXE
开发语言·前端·php
yong99909 小时前
MATLAB读取高光谱图像
开发语言·matlab
2zcode9 小时前
基于MATLAB的肝病风险评估与分期分析系统设计与实现
开发语言·matlab
小小de风呀10 小时前
de风——【从零开始学C++】(五):内存管理
开发语言·c++
ooseabiscuit10 小时前
Laravel6.x核心优化与特性全解析
android·开发语言·javascript