10 2
25 * Initially, we have $A = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)$. * After the first operation, we have $A = (2, 3, 5, 6, 8, 9)$. * After the second operation, we have $A = (3, 5, 8, 9)$. * The sum of the terms here is $3 + 5 + 8 + 9 = 25$.
10 10
0 * After the second operation, we have $A = (3, 5, 8, 9)$ (same as Sample Input 1). * After the third operation, we have $A = (5, 8)$. * After the fourth operation, we have $A = (8)$. * After the fifth operation, $A$ is empty. * In the sixth and subsequent operations, $A$ remains empty, where the sum of the terms is $0$.
10000 10
862816
{
"problem": {
"name": "Delete 1, 4, 7, ...",
"description": {
"content": "You are given an integer $N$. On an integer sequence $A = (1, 2, \\ldots, N)$, let us do the operation below exactly $K$ times. * Let $n$ be the current number of terms in $A$. For all $i$ such that",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc135_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an integer $N$. On an integer sequence $A = (1, 2, \\ldots, N)$, let us do the operation below exactly $K$ times.\n\n* Let $n$ be the current number of terms in $A$. For all $i$ such that...",
"is_translate": false,
"language": "English"
}
]
}