{"blog_title":"\u3052\u305d\u3052\u305d\u306e\u30d6\u30ed\u30b0\uff08\u30a2\u30fc\u30ab\u30a4\u30f4\uff09","author_url":"https://blog.hatena.ne.jp/gesoges0/","published":"2017-03-14 18:36:51","height":"190","provider_url":"https://hatena.blog","title":"ABC038_C","description":"\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u52b9\u7387\u5316\u306e\u554f\u984cTLE\u3060\u3063\u305f\u3084\u3064 #include <bits/stdc++.h> using namespace std; static const int MAX_N = 100000; int main() { int n,a[MAX_N+1],l,r,ans = 0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<n;i++){ l = i; for(int j=l+1;j<=n;j++){ if(a[l++]<a[j]){ ans++; }else{ break; } } } cout<<ans+n<<en\u2026","provider_name":"Hatena Blog","type":"rich","author_name":"gesoges0","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fika.geso.site%2Fentry%2F2017%2F03%2F14%2F183651\" title=\"ABC038_C - \u3052\u305d\u3052\u305d\u306e\u30d6\u30ed\u30b0\uff08\u30a2\u30fc\u30ab\u30a4\u30f4\uff09\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ika.geso.site/","version":"1.0","categories":["C++","ABC"],"image_url":null,"url":"https://ika.geso.site/entry/2017/03/14/183651"}