結果
問題 |
No.1519 Diversity
|
ユーザー |
|
提出日時 | 2021-05-31 02:06:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,008 KB |
最終ジャッジ日時 | 2024-11-08 21:06:03 |
合計ジャッジ時間 | 3,868 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 13 |
ソースコード
N = int(input()) if N==2: exit(print(0)) edges = [(2, 3)] now = 3 need = 1 while N-now>=need: for i in range(need): edges.append((now, now+i+1)) now += need need += 1 print(len(edges)) for u, v in edges: print(u, v)