Codeforces Round #846 (Div. 2)-2023/01/25

这篇博客探讨了Hayato在学校遇到的作业问题,他需要找到数组中和为奇数的三个数。题目提供了输入输出示例及解题思路,涉及到数组、奇偶性和分类讨论的算法思想。
摘要由CSDN通过智能技术生成

A. Hayato and School

Today Hayato came home from school with homework.

In the assignment, Hayato was given an array a of length n. The task was to find 3 numbers in this array whose sum is odd. At school, he claimed that there are such 3 numbers, but Hayato was not sure, so he asked you for help.

Answer if there are such three numbers, and if so, output indices i, j, and k such that ai+aj+ak is odd.

The odd numbers are integers that are not divisible by 2: 1, 3, 5, and so on.

Input

The first line contains a single integer t (1 ≤ t ≤ 10^4) — the number of test cases.

For each test case, the first line contains one integer n (3≤n≤300) — the length of a.

The second line contains n integers a1,a2,…,an (1≤ai≤10^5) — the array a.

It is guaranteed that the sum of n over all test cases does not exceed 2⋅10^5.

Output

For each test case, in the first line print o

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值