Submission #68126347
Source Code Expand
#include <iostream> int main() { int N; std::cin >> N; int A[N]; for (int i = 0; i < N; i++) std::cin >> A[i]; int cnt = 0; for (int i = 0; i < N - 1; i++) { for (int j = i + 1; j < N; j++) { if (j - i == A[i] + A[j]) cnt++; } } std::cout << cnt << '\n'; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Distance Indicators |
User | juten10x |
Language | C++ 17 (gcc 12.2) |
Score | 0 |
Code Size | 324 Byte |
Status | TLE |
Exec Time | 2207 ms |
Memory | 4236 KiB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||
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_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt, 01_random_26.txt, 01_random_27.txt, 01_random_28.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3472 KiB |
00_sample_01.txt | AC | 1 ms | 3520 KiB |
00_sample_02.txt | AC | 1 ms | 3552 KiB |
01_random_03.txt | TLE | 2207 ms | 3664 KiB |
01_random_04.txt | TLE | 2207 ms | 3864 KiB |
01_random_05.txt | TLE | 2207 ms | 3528 KiB |
01_random_06.txt | TLE | 2207 ms | 3988 KiB |
01_random_07.txt | TLE | 2207 ms | 4092 KiB |
01_random_08.txt | TLE | 2207 ms | 4076 KiB |
01_random_09.txt | TLE | 2207 ms | 4136 KiB |
01_random_10.txt | TLE | 2207 ms | 4124 KiB |
01_random_11.txt | TLE | 2207 ms | 4040 KiB |
01_random_12.txt | AC | 544 ms | 3712 KiB |
01_random_13.txt | TLE | 2207 ms | 4068 KiB |
01_random_14.txt | AC | 533 ms | 3664 KiB |
01_random_15.txt | TLE | 2207 ms | 4004 KiB |
01_random_16.txt | TLE | 2207 ms | 3936 KiB |
01_random_17.txt | TLE | 2207 ms | 3856 KiB |
01_random_18.txt | AC | 48 ms | 3552 KiB |
01_random_19.txt | TLE | 2207 ms | 3808 KiB |
01_random_20.txt | TLE | 2207 ms | 4080 KiB |
01_random_21.txt | TLE | 2207 ms | 4236 KiB |
01_random_22.txt | TLE | 2207 ms | 4132 KiB |
01_random_23.txt | TLE | 2207 ms | 4084 KiB |
01_random_24.txt | TLE | 2207 ms | 3968 KiB |
01_random_25.txt | TLE | 2207 ms | 4004 KiB |
01_random_26.txt | TLE | 2207 ms | 4096 KiB |
01_random_27.txt | TLE | 2207 ms | 4028 KiB |
01_random_28.txt | TLE | 2207 ms | 4060 KiB |