結果
問題 | No.5007 Steiner Space Travel |
ユーザー |
|
提出日時 | 2022-07-30 16:07:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 88 ms / 1,000 ms |
コード長 | 752 bytes |
コンパイル時間 | 440 ms |
実行使用メモリ | 75,944 KB |
スコア | 1,221,702 |
最終ジャッジ日時 | 2022-07-30 16:07:21 |
合計ジャッジ時間 | 4,846 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
def printout(): for i in range(M): print(c[i], d[i]) V = len(t) print(V) for i in range(V): print(t[i], r[i]) def fileout(): f = open(r"C:\Users\AwanoShota\OneDrive\ドキュメント\kojinyou\atcoder\yukicoder_marathon\out.txt", "w") for i in range(M): f.write("{} {}\n".format(c[i], d[i])) V = len(t) f.write(str(V) + "\n") for i in range(V): f.write("{} {}\n".format(t[i], r[i])) N, M = map(int, input().split()) a = [0] * N b = [0] * N for i in range(N): a[i], b[i] = map(int, input().split()) c = [0] * M d = [0] * M for i in range(M): c[i] = i d[i] = i+1 t = [] r = [] for i in range(N): t.append(1) r.append(i+1) t.append(1) r.append(1) printout()