結果
| 問題 |
No.1399 すごろくで世界旅行 (構築)
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 16:30:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 84,000 KB |
| 最終ジャッジ日時 | 2025-06-12 16:31:25 |
| 合計ジャッジ時間 | 23,330 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 WA * 13 |
ソースコード
V, D = map(int, input().split())
# Create adjacency matrix
E = [[0 for _ in range(V)] for __ in range(V)]
for i in range(V):
j = (i + 1) % V
E[i][j] = 1
k = (i - 1) % V
E[i][k] = 1
# Print the matrix
for row in E:
print(''.join(map(str, row)))
gew1fw