結果
問題 | No.921 ずんだアロー |
ユーザー |
|
提出日時 | 2020-01-08 10:20:40 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 3,859 ms |
コンパイル使用メモリ | 65,152 KB |
実行使用メモリ | 8,704 KB |
最終ジャッジ日時 | 2024-11-23 02:22:00 |
合計ジャッジ時間 | 5,068 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import sequtils, strutilsproc solve() =varN = stdin.readLine.parseInt()A = stdin.readLine.split.map(parseInt)ans = 1flg = truefor i in 1..<N:if flg:if A[i-1] == A[i]:inc anselse:flg = falseelse:inc ansflg = trueecho anssolve()