Submission #69643260
Source Code Expand
const inputText = require("fs").readFileSync("/dev/stdin", "utf8");
/** @type {String[][]} - スペース区切りと改行区切りをそのまま2次元配列に変えた状態 */
const input = inputText.trim().split("\n").map(row => row.split(" "));
const N = +input[0][0];
let all = 0;
for (let i = 1; i <= N; i++) all += (-1)**i * i ** 3
console.log(all);
Submission Info
| Submission Time | |
|---|---|
| Task | A - Sigma Cubes |
| User | AXT_AyaKoto |
| Language | JavaScript (Node.js 18.16.1) |
| Score | 100 |
| Code Size | 368 Byte |
| Status | AC |
| Exec Time | 41 ms |
| Memory | 42752 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 41 ms | 42684 KiB |
| 00_sample_01.txt | AC | 41 ms | 42660 KiB |
| 00_sample_02.txt | AC | 41 ms | 42680 KiB |
| 01_random_00.txt | AC | 41 ms | 42528 KiB |
| 01_random_01.txt | AC | 41 ms | 42676 KiB |
| 01_random_02.txt | AC | 41 ms | 42752 KiB |
| 01_random_03.txt | AC | 41 ms | 42664 KiB |
| 01_random_04.txt | AC | 41 ms | 42548 KiB |
| 01_random_05.txt | AC | 41 ms | 42684 KiB |
| 01_random_06.txt | AC | 41 ms | 42528 KiB |