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;
}
相关推荐
qydz114 小时前
杰理开发基础知识(3)
开发语言·嵌入式开发·杰理科技
贾斯汀frank4 小时前
C# 15 类型系统改进:Union Types
开发语言·windows·c#
阿里嘎多学长4 小时前
2026-07-10 GitHub 热点项目精选
开发语言·程序员·github·代码托管
CHHH_HHH4 小时前
【C++11】深入解析C++可变参数模板
开发语言·c++·算法·stl·c++11
jimy16 小时前
C语言模拟对象、方法:“函数指针+结构体“复用函数指针指向的函数体
c语言·开发语言
天外天-亮7 小时前
HBuilder X 使用 uview-plus 方式
开发语言·javascript·hbuilder x·uview-plus
木木子227 小时前
[特殊字符] 音乐播放器——状态驱动的多媒体控制
android·开发语言·华为·php·harmonyos
六个九十度8 小时前
用python脚本访问被网关隔离的嵌入式设备
开发语言·python
酷酷的身影8 小时前
Drivers/LedManager.cs
开发语言·php
小樱花的樱花8 小时前
Linux 线程的创建
linux·c语言·开发语言