K
Khách

Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

double a,b,c,tb;

int main()

{

cin>>a>>b>>c;

tb=(a+b+c)/3;

cout<<fixed<<setprecision(1)<<tb<<endl;

if (tb>=8) cout<<"Gioi";

else if ((6.5<=tb) and (tb<8)) cout<<"Kha";

else if ((5<=tb) and (tb<=6.5)) cout<<"Trung Binh";

else cout<<"Chua dat";

return 0;

}

19 tháng 12 2021

if (b%2==0) cout<<"b la so chan";

if (b%2==1) cout<<"b la so le";

19 tháng 12 2021

Có lẽ là bạn hơi thừa cái readln

29 tháng 3 2023

Sửa lại:

program fashkfs;
uses crt;
var n, i,j,m: longint;
  a, b: array[1..1000] of integer;
begin
  clrscr;
  readln(n, m);
  for i := 1 to m do
  begin
    read(a[i]);
  end;
  b[0] := 1;
  for i := 1 to m do
  begin
    for j := 1 to n do
    begin
      if (b[j - a[i]] <> 0) and (a[i] <= j) then
      begin
        b[j] := b[j] + b[j - a[i]];
      end;
    end;
  end;
  writeln(b[n]);
  readln;
end.

 

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

long long a,b;

int main()

{

cin>>a>>b;

cout<<min(a,b)<<" "<<max(a,b);

return 0;

}

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

double a;

int main()

{

cin>>a;

if (a>=8.0) cout<<"Gioi";

else if (6.5<=a) cout<<"Kha";

else if (5.0<=a) cout<<"Trung Binh";

else if (3.5<=a) cout<<"Yeu";

else cout<<"Kem";

return 0;

}

19 tháng 12 2021

1:

#include <bits/stdc++.h>

using namespace std;

double r;

int main()

{

cin>>r;

cout<<r*r*pi;

return 0;

}

19 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

long long a,b,c,d;

int main()

{

cin>>a>>b>>c>>d;

cout<<max(a,max(b,max(c,d)));

return 0;

}

15 tháng 12 2021

Kiểm tra tự làm nhé

15 tháng 12 2021

1.B

2.D