結果
| 問題 |
No.1519 Diversity
|
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-05-28 21:11:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 81,720 KB |
| 実行使用メモリ | 84,884 KB |
| 最終ジャッジ日時 | 2024-11-07 08:47:52 |
| 合計ジャッジ時間 | 5,012 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 13 |
ソースコード
n=int(input())
ans=[]
cnt=[0]*n
for i in range(n):
for j in range(min((n-i-1),i+1-cnt[i])):
ans.append([i+1,i+2+j])
print(len(ans))
for i in ans:
print(*i)
nasubi24