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;
}
相关推荐
Eloudy1 分钟前
全文 - version.A - AMBA CHI Chip-to-Chip(C2C)
java·开发语言·数据库·gpu·chiplet
秋名RG9 分钟前
Java历代LTS版本新特性详解(代码增强版)
java·开发语言·python
李少兄9 分钟前
深度剖析 Hutool ObjectUtil
java·开发语言
魏码不凡10 分钟前
Go 编译报错:undefined: webp.Encode 问题排查与解决
开发语言·后端·golang
276695829211 分钟前
youdao/有道翻译APP 算法协议分析
开发语言·前端·python·sign·youdao·有道翻译app算法·有道app协议请求
励志不掉头发的内向程序员19 分钟前
【从零写一个CAD 04】中键拖动平移:抓住一个点,让它一直待在鼠标底下
开发语言·c++·qt·学习·系统架构·计算机外设
tachibana22 小时前
与其他语言相比,使用 Go 有什么好处?
开发语言·后端·golang·go
阿俊-全栈开发6 小时前
LikeShop 单商户SaaS商城分销模块二开:佣金计算与结算逻辑实现
java·开发语言·微服务·likeshop·likeshop开源商城·likeshop多商户
m0_3807438710 小时前
C++中的freopen的用法实例详解
开发语言·c++
Escalating_xu10 小时前
【Python】基础语法(1):常量、变量、类型、输入输出与运算符
开发语言·python