結果
問題 |
No.1687 What the Heck?
|
ユーザー |
![]() |
提出日時 | 2021-10-06 14:24:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 103,000 KB |
最終ジャッジ日時 | 2024-07-23 02:53:03 |
合計ジャッジ時間 | 2,437 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 WA * 2 |
ソースコード
n = int(input()) suzu = list(map(int, input().split())) draw = 0 pt = sum(range(n)) + n for i in range(n, 1, -1): smax = suzu.index(i) + 1 smax2 = suzu.index(i-1) + 1 if smax2 <= smax/2: draw += smax continue else: pt -= (smax*2 + draw) break else: pt = 0 print (pt)