結果
| 問題 | No.1519 Diversity |
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-05-28 21:11:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 85,696 KB |
| 実行使用メモリ | 89,868 KB |
| 最終ジャッジ日時 | 2026-05-07 17:15:56 |
| 合計ジャッジ時間 | 3,668 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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