Tên đăng nhập Điểm Bài tập ▾ Giới thiệu
21201 1501 1

sad boy

21202 101 1
21202 101 1
21204
haitapcode
Hồ Quang Hải
301 1
21205 101 1
21206 201 1
21207 90 1
21208 101 1
21208 101 1
21210 1001 1
21211 2201 1
21212 601 1
21213 301 1
21214 101 1
21215 801 1
21216 101 1
21217 1801 1
21218
vinhkhangtruong23
Truong vinh khang10ly
101 1

tài khoản mới

21219 301 1
21220 210 1
21221 1001 1
21222 1235 1
21223 401 1
21224 501 1
21225 301 1
21226 101 1
21226 101 1
21226 101 1
21226 101 1
21230 1001 1
21231 750 1

Nothing

21232 101 1
21232
pikadn
Đức Nghĩa
101 1
21232 101 1
21235 201 1
21236 93 1
21237 801 1
21238
votamnhi123
Võ Tâm Nhi
101 1
21239 801 1
21240 10 1
21241 351 1
21242 101 1
21242 101 1
21242 101 1
21245 660 1
21246
phkhanhs410
Phạm Nam Khánh
2401 1
21247 401 1
21248 101 1
21249 280 1
21250 801 1
21251 1001 1
21252 301 1
21253 147 1

include <bits/stdc++.h>

using namespace std;

int n, ans;
int a[100005], L[100005];

int main()
{
cin >> n;
for(int i = 1; i <= n; ++i) cin >> a[i];
for(int i = 1; i <= n; ++i) L[i] = 1;
for(int i = 1; i <= n; ++i)
{
for(int j = 1; j < i; ++j)
{
if(a[i] > a[j]) L[i] = max(L[i], L[j] + 1);
}
}
ans = 1;
for(int i = 1; i <= n; ++i) ans = max(L[i], ans);
int d = 0;
for(int i = 1; i <= n; ++i)
{
if(L[i] == ans) ++d;
}
cout << d;
}

21254 8 1
21255 12 1
21256 101 1

hhbmj

21257 1333 1
21258 101 1
21259 301 1
21260 50 1
21261 190 1
21262 101 1
21263
SL_07 636
Zincate
560 1
21264 600 1
21265 901 1
21266 201 1
21267 70 1
21268 1892 1
21269 401 1
21270 111 1
21271 1601 1
21272 201 1
21273 1101 1
21274 201 1
21275 171 1
21276 101 1
21277 980 1

đã có ny

21278 51 1
21279 401 1
21280 201 1
21281 101 1
21282 201 1
21283 801 1
21284 1601 1
21285 151 1

include <bits/stdc++.h>

define int long long

using namespace std;
main()
{
string s;
cin>>s;
for(int i=s.size();i>=0;i--)
cout<<s[i];
}

21286 301 1
21287 1301 1
21288 201 1
21288 201 1
21290 171 1
21291 401 1
21292 101 1
21293 133 1
21294 101 1
21295 1401 1
21296 101 1
21296 101 1

tho

21298 1501 1
21299 400 1
21300 857 1