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.

31 tháng 7 2016

câu này mình tl rùi

23 tháng 7 2016

tính j

26 tháng 12 2022

đúng

#include<bits/stdc++.h>using namespace std;int main() {  int n;  cin>>n;  int A[n],B[n],C[2*n];  for (int i=0; i<n;i++)    {    cin>>A[i];  }  for (int i=0;i<n; i++)  {    cin>>B[i];  }  for (int i=0;i<n;i++)   {    C[2*i]=A[i];    C[2*i+1]=B[i];  }  for (int i=0; i<2*n;i++)   {    cout<<C[i]<< " ";  }}   #include <iostream>using namespace std;int main(){    int n, x;    cin >> n;    int a[n];    for (int i = 0; i < n; i++)        cin >> a[i];    int q; ...
Đọc tiếp

#include<bits/stdc++.h>
using namespace std;
int main()
 {
  int n;
  cin>>n;
  int A[n],B[n],C[2*n];
  for (int i=0; i<n;i++)
    {
    cin>>A[i];
  }
  for (int i=0;i<n; i++)
  {
    cin>>B[i];
  }
  for (int i=0;i<n;i++)
   {
    C[2*i]=A[i];
    C[2*i+1]=B[i];
  }
  for (int i=0; i<2*n;i++)
   {
    cout<<C[i]<< " ";
  }
}

 

 

 

#include <iostream>
using namespace std;

int main()
{
    int n, x;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++)
        cin >> a[i];
    int q;
    cin >> q;
    while (q--)
    {
        int cnt = 0;
        cin >> x;
        for (int i = 0; i < n; i++)
            if (a[i] == x)
                cnt++;
        cout << cnt << endl;
    }
    return 0;
}

 

 

#include <bits/stdc++.h>
using namespace std;
long long n, a[100000], i, b[100000], s, j, k;
int main()
{
    cin >> n;
    for (i = 1; i <= n; i++)
    {
        cin >> a[i];
    }
    k = 2;
    b[1] = 0;
    for (i = 2; i <= n; i++)
    {
        for (j = 1; j <= i - 1; j++)
        {
            if (a[j] > a[i])
            {
                s++;
            }
        }
        b[k] = s;
        k++;
        s = 0;
    }
    for (i = 1; i <= k - 1; i++)
    {
        cout << b[i] << " ";
    }
}

 

 

0
I/ Choose the best answer: 1. Choose the word which is pronounced differently from the others: A. wanted B. worked C. needed D.visited 2. Choose the word which has different stress from the others: A. lacquerware B. pottery C. embroider D.layer 3. He works as an ___________ in his uncle’s workshop. A. attraction B. artisan C....
Đọc tiếp

I/ Choose the best answer:

1. Choose the word which is pronounced differently from the others:

A. wanted

B. worked

C. needed

D.visited

2. Choose the word which has different stress from the others:

A. lacquerware

B. pottery

C. embroider

D.layer

3. He works as an ___________ in his uncle’s workshop.

A. attraction

B. artisan

C. embroider

D.lacquer

4. They need to find a solution to ___________ the local environment.

A. preserve

B. cast

C. weave

D.knit

5. The company is going to close ___________ one of its stores due to reduced sales.

A. on

B. down

C. in

D.at

6. He was hired for the position because he is ___________.

A. reliability

B. reliably

C. reliable

D.unreliable

7. I love going to this place _____________ it’s the quietest place in the city.

A. so

B. though

C. so that

D.as

8. Nothing is __________ than being stuck in a traffic jam.

A. worse

B. badly

C. more badly

D.the worst

9. When I __________, the town hall was already full of teenagers.

A. turned on

B. turned off

C. turned up

D.turned into

10. Nam: There’s a lantern festival nearby. Do you want to come with us?

Mai: Yeah, ___________ !

A. sorry

B. cool

C. I see

D.not at all

11. Remember to _________ your shoes when you enter a Japanese house.

A. take over

B. take on

C. take up

D.take off

12. The roads are ___________ as one of the solutions to deal with traffic jams.

A. extended

B. expensive

C. overcrowding

D.shelter

1
24 tháng 3 2020

I/ Choose the best answer:

1. Choose the word which is pronounced differently from the others:

A. wanted

B. worked

C. needed

D.visited

2. Choose the word which has different stress from the others:

A. lacquerware

B. pottery

C. embroider

D.layer

3. He works as an ___________ in his uncle’s workshop.

A. attraction

B. artisan

C. embroider

D.lacquer

4. They need to find a solution to ___________ the local environment.

A. preserve

B. cast

C. weave

D.knit

5. The company is going to close ___________ one of its stores due to reduced sales.

A. on

B. down

C. in

D.at

6. He was hired for the position because he is ___________.

A. reliability

B. reliably

C. reliable

D.unreliable

7. I love going to this place _____________ it’s the quietest place in the city.

A. so

B. though

C. so that

D.as

8. Nothing is __________ than being stuck in a traffic jam.

A. worse

B. badly

C. more badly

D.the worst

9. When I __________, the town hall was already full of teenagers.

A. turned on

B. turned off

C. turned up

D.turned into

10. Nam: There’s a lantern festival nearby. Do you want to come with us?

Mai: Yeah, ___________ !

A. sorry

B. cool

C. I see

D.not at all

11. Remember to _________ your shoes when you enter a Japanese house.

A. take over

B. take on

C. take up

D.take off

12. The roads are ___________ as one of the solutions to deal with traffic jams.

A. extended

B. expensive

C. overcrowding

D.shelter

#include <bits/stdc++.h>

using namespace std;

int a,b,s1,s2,s;

int main()

{

cin>>a>>b;

s1=0; s2=0;

for (int i=a; i<=b; i++)

{

if (i%2==0) s1+=i;

else s2+=i;

}

cout<<s1<<endl;

cout<<s2;

return 0;

}

9 tháng 3 2023

đc

24 tháng 11 2021

\(A=a\left(x-y\right)+b\left(x-y\right)=\)

\(=\left(x-y\right)\left(a+b\right)=-1.-7=7\)

Chọn C