結果
| 問題 | No.365 ジェンガソート |
| コンテスト | |
| ユーザー |
mkawa2
|
| 提出日時 | 2020-03-19 17:59:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 549 bytes |
| 記録 | |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,128 KB |
| 最終ジャッジ日時 | 2024-12-14 03:24:05 |
| 合計ジャッジ時間 | 4,537 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 25 |
ソースコード
import sys
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.buffer.readline())
def MI(): return map(int, sys.stdin.buffer.readline().split())
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.buffer.readline()[:-1]
def main():
n=II()
aa=LI()
ans=0
mx=aa[0]
for a in aa[1:]:
if mx>a:ans+=1
mx=max(mx,a)
print(ans)
main()
mkawa2