結果
| 問題 |
No.1346 Rectangle
|
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2021-01-16 13:52:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 162 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-27 14:37:32 |
| 合計ジャッジ時間 | 1,165 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | AC * 2 WA * 6 RE * 9 |
ソースコード
n = int(input())
assert n % 2 == 0
if n == 2:
print("INF")
exit()
m = n * (n - 1)
x = n // 2
y = n - x
print(m // (x * (x - 1) // 2 + y * (y - 1) // 2))
nok0