結果
問題 | No.3012 岩井星人グラフ |
ユーザー |
|
提出日時 | 2025-01-25 12:45:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 231 ms / 2,000 ms |
コード長 | 586 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 112,896 KB |
最終ジャッジ日時 | 2025-01-25 22:20:37 |
合計ジャッジ時間 | 9,516 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #sys.set_int_max_str_digits(0) #input = sys.stdin.readline #n = int(input()) #alist = list(map(int,input().split())) #alist = [] #s = input() x,y = map(int,input().split()) #for i in range(n): # alist.append(list(map(int,input().split()))) e = [] z = [] for i in range(x): z.append(i*y) for j in range(y-1): e.append((i*y+j,i*y+j+1)) for i in range(x): e.append((z[i],z[(i+1)%len(z)])) print(x*y,len(e)) for i,j in e: print(i+1,j+1)