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

include <bits/stdc++.h>

using namespace std;
int ds(int n, int k)
{
long long dem=0,a=1;
while(dem<k)
{
if (a%n!=0)
{
dem++;
}
a++;
}
return a-1;
}
int main()
{

long long n,k;
cin >> n >> k;
cout << ds(n,k);

}

43501 0 0
43501 0 0

var A:Array[1..5001] of longint; i,j,k,d,n:longint; cv,S,max:real;
f:text;
Begin
assign(f,'TAMGIAC.INP'); reset(f);
readln(f,n);
for i:=1 to n do read(f,A[i]);
assign(f,'TAMGIAC.OUT'); rewrite(f);
d:=0;
for i:=1 to n-2 do
for j:=i+1 to n-1 do
for k:=j+1 to n do
if (A[i]+A[j]>A[k]) and (A[i]+A[k]>A[j]) and (A[j]+A[k]>A[i]) then
Begin
inc(d);
cv:=(A[i]+A[j]+A[k])/2;
S:=sqrt(cv(cv-A[i])(cv-A[j])*(cv-A[k]));
if S>max then max:=S;
end;
writeln(f,d);
close(f);
end.

43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501
xemclip18com
XemClip18.com
0 0

XemClip18.Com - Tổng Hợp Clip Hot, Clip Phốt, XemClip18+, XemClip, Clip Nóng Nhất Hôm Nay - MXH Tổng hợp Clip nóng , 18+ HOT nhất trong ngày

43501 0 0

🔥 About Me:

Là một người bình thường, chỉ là hơi ngu ngơ thôi😊

🌐 Socials:


🎮 Game:

🔥 Game Accounts:

  • PRX Miyuki#Kaori (Rank: Bronze)
  • PRX Miyuki#Kaori (Rank: Ko có🤡)
  • UID: 845422867
  • UID: 831273794

💻 Language and More:

43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0

include <iostream>

include <cmath>

using namespace std;
int main() {
freopen("TONGLAPPHUONG.INP","r",stdin);
freopen("TONGLAPPHUONG.OUT","w",stdout);
string n;
cin >> n;
int res = 0;
for (int i = 0; i < n.length(); i++) {
res = res + (int) pow(n[i] - 48, 3);
}
cout << res;
return 0;
}

43501 0 0
43501
LeDanhDattt
LK30_LDĐ
0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501
minh_22
nguyễn nhật minh
0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501
vlicetrang
Van Trang
0 0
43501 0 0
43501 0 0
43501
DK7979
Tran Doan Dang Khoi
0 0

tbu

43501 0 0
43501 0 0
43501 0 0
43501 0 0

.

43501 0 0

ef

43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0

n,t=map(int,input().split())
a=[]
for i in range(n):
a.append(str(i))

b=[]
i=0
j=i+1
while i<len(a):
temp=a[i]+' '
for x in range(j,len(a)):
temp+=a[x]+' '
b.append(temp.split())
if j<len(a):
j+=1
else:
i+=1
j=i+1

def xuli(a):
t=0
for i in a:
t+=int(i)
return t

min=abs(xuli(b[0])/3-t)
max=xuli(b[0])
for i in b:
if len(i)==3 and abs(xuli(i)/3-t)<min and xuli(i)>max:
min=abs(xuli(i)/3-t)
max=xuli(i)

print(max)

43501 0 0
43501 0 0
43501
NgocHan
Trần Ngọc Hân
0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0
43501 0 0