Skip to content

Instantly share code, notes, and snippets.

@Quankun1211
Created April 23, 2025 09:08
Show Gist options
  • Save Quankun1211/5f4a1d8ac22b321f835183274514d530 to your computer and use it in GitHub Desktop.
Save Quankun1211/5f4a1d8ac22b321f835183274514d530 to your computer and use it in GitHub Desktop.
{
"cases": [
{
"isVisible": true,
"output": {
"name": "result",
"type": "number",
"value": "6"
},
"params": [
{
"name": "n",
"type": "number",
"value": "3"
}
]
},
{
"isVisible": true,
"output": {
"name": "result",
"type": "number",
"value": "15"
},
"params": [
{
"name": "n",
"type": "number",
"value": "5"
}
]
},
{
"isVisible": true,
"output": {
"name": "result",
"type": "number",
"value": "55"
},
"params": [
{
"name": "n",
"type": "number",
"value": "10"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "66"
},
"params": [
{
"name": "n",
"type": "number",
"value": "11"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "528"
},
"params": [
{
"name": "n",
"type": "number",
"value": "32"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "1081"
},
"params": [
{
"name": "n",
"type": "number",
"value": "46"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "1378"
},
"params": [
{
"name": "n",
"type": "number",
"value": "52"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "2415"
},
"params": [
{
"name": "n",
"type": "number",
"value": "69"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "6441"
},
"params": [
{
"name": "n",
"type": "number",
"value": "113"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "21115"
},
"params": [
{
"name": "n",
"type": "number",
"value": "205"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "148240"
},
"params": [
{
"name": "n",
"type": "number",
"value": "544"
}
]
}
,
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "524800"
},
"params": [
{
"name": "n",
"type": "number",
"value": "1024"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "2717946"
},
"params": [
{
"name": "n",
"type": "number",
"value": "2331"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "60725710"
},
"params": [
{
"name": "n",
"type": "number",
"value": "11020"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "977284155"
},
"params": [
{
"name": "n",
"type": "number",
"value": "44210"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "180722824206"
},
"params": [
{
"name": "n",
"type": "number",
"value": "601203"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "903422705955"
},
"params": [
{
"name": "n",
"type": "number",
"value": "1344189"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "26273453203350"
},
"params": [
{
"name": "n",
"type": "number",
"value": "7248924"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "4363039823456328"
},
"params": [
{
"name": "n",
"type": "number",
"value": "93413487"
}
]
},
{
"isVisible": false,
"output": {
"name": "result",
"type": "number",
"value": "48980537969618811"
},
"params": [
{
"name": "n",
"type": "number",
"value": "312987341"
}
]
}
],
"description": {
"en": "<p>Viết một chương trình để tính tổng các số nguyên từ <code>1</code> đến <code>n</code>, với <code>n</code> là một số nguyên dương được nhập từ bàn phím.</p>\n\n<strong>Ví dụ 1:</strong>\n<strong>Đầu vào:</strong>: <code>n</code> = 3\n<strong>Đầu ra:</strong>: 6\n<strong>Ví dụ 2:</strong>\n<strong>Đầu vào:</strong>: <code>n</code> = 5\n<strong>Đầu ra:</strong>: 15\n<strong>Ví dụ 3:</strong>\n<strong>Đầu vào:</strong>: <code>n</code> = 10\n<strong>Đầu ra:</strong>: 55\n\n<strong>Ràng buộc:</strong>\n0 <= <code>n</code> <= 10<sup>6</sup>",
"vi": "<p>Viết một chương trình để tính tổng các số nguyên từ <code>1</code> đến <code>n</code>, với <code>n</code> là một số nguyên dương được nhập từ bàn phím.</p><p>&nbsp;</p>\n\n<p><strong class=\"example\">Ví dụ 1:</strong></p>\n\n<pre><strong>Đầu vào:</strong> n = 3\n<strong>Đầu ra:</strong> 6\n</pre>\n\n<p><strong class=\"example\">Ví dụ 2:</strong></p>\n\n<pre><strong>Đầu vào:</strong> n = 5\n<strong>Đầu ra:</strong> 15\n<strong>\n\n<p><strong class=\"example\">Ví dụ 3:</strong></p>\n\n<pre><strong>Đầu vào:</strong> n = 10\n<strong>Đầu ra:</strong> 55\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>Ràng buộc:</strong></p>\n\n<ul>\n\n<li><code>0 <= n <= 10<sup>6</sup></code></li>\n\n</ul>"
},
"functionName": "sum"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment