結果

問題 No.3012 岩井星人グラフ
ユーザー matttttttoy
提出日時 2025-01-25 13:03:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 77,416 KB
最終ジャッジ日時 2025-01-25 22:31:15
合計ジャッジ時間 6,801 ms
ジャッジサーバーID
(参考情報)
judge2 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

X,Y=map(int,input().split())
print(X*Y,X*Y)
for i in range(X):
    print(i%X+1,(i+1)%X+1)

for i in range(1,X+1):
    for j in range(Y-1):
        print(i+X*j,i+X*(j+1))
0