結果
問題 |
No.831 都市めぐり
|
ユーザー |
|
提出日時 | 2019-06-09 00:46:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 532 bytes |
コンパイル時間 | 190 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-05 23:57:48 |
合計ジャッジ時間 | 4,580 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 1 WA * 17 |
ソースコード
n = int(input()) count = 0 start = n if n > 1: baff = start - 2 if baff > 0: count += start * baff + (baff - start) start = baff baff = start + 1 count += start * baff + (baff - start) start = baff while(baff > 2 and start > 2): baff = start - 3 if baff > 0: count += start * baff + (baff - start) start = baff baff = start + 1 count += start * baff + (baff - start) start = baff count += start * n + (n - start) print(count)