結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー gew1fw
提出日時 2025-06-12 18:33:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 81,924 KB
実行使用メモリ 84,124 KB
最終ジャッジ日時 2025-06-12 18:34:03
合計ジャッジ時間 24,249 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

V, D = map(int, input().split())

# Create a complete graph matrix
matrix = [[0] * V for _ in range(V)]
for i in range(V):
    for j in range(V):
        if i != j:
            matrix[i][j] = 1

# Print the matrix
for row in matrix:
    print(''.join(map(str, row)))
0