結果
| 問題 |
No.1519 Diversity
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-26 19:54:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 167 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-06-25 09:19:48 |
| 合計ジャッジ時間 | 2,856 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 WA * 6 |
ソースコード
N = int(input())
ans = N - 1
cnt = N - 1
while cnt > 0:
cnt -=2
ans += cnt
print(ans)
for i in range(1,N//2 + 1):
for j in range(i+1,N - i + 2):
print(i,j)