結果
問題 |
No.1346 Rectangle
|
ユーザー |
![]() |
提出日時 | 2021-01-16 13:50:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 153 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-27 14:35:08 |
合計ジャッジ時間 | 1,152 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 13 |
ソースコード
n = int(input()) if n == 2: print("INF") exit() m = n * (n - 1) // 2 x = n // 2 y = n - x print(m // (x * (x - 1) // 2 + y * (y - 1) // 2) * 2)