結果

問題 No.365 ジェンガソート
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-21 01:02:28
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 3,503 ms
コンパイル使用メモリ 65,968 KB
実行使用メモリ 8,832 KB
最終ジャッジ日時 2024-06-30 17:31:57
合計ジャッジ時間 4,560 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils

var
  N, a = stdin.readLine.split.map parseInt
  cnt, ttl = 0


for i, a_i in a:
  if a_i < cnt:
    ttl += 1
  else:
    cnt = max(cnt, a_i)

echo ttl
0