提出 #73138121
ソースコード 拡げる
N = int(input())
A = [[0]*N for _ in range(N)]
B = [2,5,11,17,19,29,37,43,53,61,71,79,91,101,113]
for i in range(N):
for j in range(N):
if i == 0:
A[i][j] = 0
else:
A[i][j] = B[i] ** (j+1)
for a in A:
print(*a)
提出情報
| 提出日時 | |
|---|---|
| 問題 | D - Distinct Sum Grid Path |
| ユーザ | glaceon1020 |
| 言語 | Python (PyPy 3.11-v7.3.20) |
| 得点 | 0 |
| コード長 | 268 Byte |
| 結果 | WA |
| 実行時間 | 59 ms |
| メモリ | 80052 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 700 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | 01-03.txt, 01-04.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, sample-01.txt, sample-02.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-03.txt | AC | 58 ms | 79900 KiB |
| 01-04.txt | AC | 58 ms | 79828 KiB |
| 01-06.txt | WA | 59 ms | 79872 KiB |
| 01-07.txt | WA | 59 ms | 80016 KiB |
| 01-08.txt | WA | 59 ms | 79872 KiB |
| 01-09.txt | WA | 59 ms | 79948 KiB |
| 01-10.txt | WA | 59 ms | 79956 KiB |
| 01-11.txt | WA | 59 ms | 79892 KiB |
| 01-12.txt | WA | 58 ms | 79760 KiB |
| 01-13.txt | WA | 59 ms | 80052 KiB |
| sample-01.txt | AC | 58 ms | 79888 KiB |
| sample-02.txt | AC | 58 ms | 79904 KiB |