CodeFoeces-1194A

题目

原题链接:A. Remove a Progression

题意

image.png

求1~n序列中执行x次筛选后的第x个数字。每次去掉数列中的第i个数字。

代码

#include 
int main()
{
    int T, n, x;
    scanf("%d", &T);
    while (T--)
    {
        scanf("%d %d", &n, &x);
        printf("%d\n", 2 * x);
    }
}

你可能感兴趣的:(CodeFoeces-1194A)