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.

24 tháng 10 2021

Xin chào

24 tháng 10 2021

Hello:Xin chào

HQ
Hà Quang Minh
Giáo viên
1 tháng 10 2023

Để gắn nhãn cho các ghế ta chọn chọn 1 chữ cái in hoa và 1 số (từ 1 đến 20).

Số cách chọn chữ cái in hoa: 26 cách (tương ứng với 26 chữ)

Số cách chọn số: 20 cách 

Vậy số ghế gắn nhãn tối đa là 26.20 = 520 (ghế)

TUVUNG - TỪ VỰNGDữ liệu vào: standard inputDữ liệu ra: standard outputGiới hạn thời gian: 1.0 giâyGiới hạn bộ nhớ: 128 megabyte       Uyên viết ra một xâu S có độ dài không quá 106 chỉ gồm các kí tự thường trong bảng chữ cái tiếng Anh. Một từ vựng là một từ thu được bằng cách sao chép một đoạn kí tự liên tiếp từ xâu S thoả mãn một trong hai điều kiện:     - Bắt đầu bằng một nguyên âm (a, e, i, o, u),...
Đọc tiếp

TUVUNG - TỪ VỰNG

Dữ liệu vào: standard input

Dữ liệu ra: standard output

Giới hạn thời gian: 1.0 giây

Giới hạn bộ nhớ: 128 megabyte 

 

     Uyên viết ra một xâu S có độ dài không quá 106 chỉ gồm các kí tự thường trong bảng chữ cái tiếng Anh. Một từ vựng là một từ thu được bằng cách sao chép một đoạn kí tự liên tiếp từ xâu S thoả mãn một trong hai điều kiện:

     - Bắt đầu bằng một nguyên âm (a, e, i, o, u), kết thúc bằng một phụ âm

     - bắt đầu bằng một phụ âm và kết thúc là một nguyên âm.

     Yêu cầu: Giúp Uyên đếm số lượng từ vựng có trong S theo quy tắc trên.

Dữ liệu nhập:

  - Gồm một xâu S.

Kết quả:

  - in ra một số duy nhất là kết quả tìm được.

Ràng buộc:

  - 1/3 số test: Xâu S dài không quá 104.

Ví dụ

input

adceba

output

9

Lưu ý:

  - Đây không phải là test chấm chính thức của BTC.

1
27 tháng 6 2023
#include<bits/stdc++.h> using namespace std;string s;long long c[1000001],w[1000001];int main() {getline(cin,s);long long n = s.size();if(s[n-1] == 'a' || s[n-1] == 'e' || s[n-1] == 'i' || s[n-1] == 'o' || s[n-1] == 'u') c[n-1] = 0;else c[n-1] = 1;for(int i = n-2;i >= 0;i--) {if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') {c[i] = c[i+1];}else {c[i] = c[i+1]+1;}}if(s[n-1] == 'a' || s[n-1] == 'e' || s[n-1] == 'i' || s[n-1] == 'o' || s[n-1] == 'u') w[n-1] = 1;else w[n-1] = 0;for(int i = n - 2; i >= 0;i--) {if(s[i] != 'a'&s[i] != 'e'& s[i] != 'i' &s[i] != 'o'&s[i] != 'u') {w[i] = w[i+1];}else w[i] = w[i+1]+1;}long long dem = 0;for(int i = 0;i < s.size();i++) {if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') {dem = dem + c[i];}else {dem = dem + w[i];}}cout << dem;return 0;}
27 tháng 6 2023
#include<bits/stdc++.h>using namespace std;string s;long long c[1000001],w[1000001];int main() {getline(cin,s);long long n = s.size();if(s[n-1] == 'a' || s[n-1] == 'e' || s[n-1] == 'i' || s[n-1] == 'o' || s[n-1] == 'u') c[n-1] = 0;else c[n-1] = 1;for(int i = n-2;i >= 0;i--) {if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') {c[i] = c[i+1];}else {c[i] = c[i+1]+1;}}if(s[n-1] == 'a' || s[n-1] == 'e' || s[n-1] == 'i' || s[n-1] == 'o' || s[n-1] == 'u') w[n-1] = 1;else w[n-1] = 0;for(int i = n - 2; i >= 0;i--) {if(s[i] != 'a'&s[i] != 'e'& s[i] != 'i' &s[i] != 'o'&s[i] != 'u') {w[i] = w[i+1];}else w[i] = w[i+1]+1;}long long dem = 0;for(int i = 0;i < s.size();i++) {if(s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') {dem = dem + c[i];}else {dem = dem + w[i];}}cout << dem;return 0;}    
2 tháng 3 2018

lên tiếng anh123 thử nhé bởi vì trên đó taonf tiếng anh luyện nghe

2 tháng 3 2018

n mk ko có tiền mà mua thẻ vip, mk cx đăng kí từ lâu rùi n thi thoảng ms vào xem đoạn văn. Bn ko biết ở chỗ nào khác hả

8 tháng 9 2018

7203 : MCCIII

123123 : MMMDDDCCCMM... ( TÓM LẠI DÀI LẮM MIK KO VIẾT NỔI , MIK BỎ QUA NHA HIH)

9651 : MMMDDDCCCMMDCC

KO CHẮC LÀ ĐÚNG HOK NỮA HIHI

HN HOK TỐT NHA !!!

9 tháng 9 2018

bn thư lên mạng ik cx có thể bt đc 

chứ viết ra thì dài và mệt lắm nên thông cảm nha ><

bn có thể liên hệ Nguồn :Gu gồ sama để bt thêm 

10 tháng 8 2018

                                                                                   ​Bài Làm   

Do you ever wonder why certain places mean so much to certain people? When I

think of my bedroom, I realize why some people are touchy about who goes in their room

or who has been touching things in their

home, it is because those things are important to

them and may have some meaning. Places my bedroom are places where we can

relax and be comfortable and I think that is why it is important to people, because we can

be ourselves and feel comfortable,

we can also just sit down and rest our bones and relax.

Another important reason is we can go there when we want privacy, we can just shut our

door, maybe even lock it, and tell everyone in our household not to bother us. Also our

rooms hold most of our pe

rsonal belongings and those things are important to us and we

do not want anyone else to touch them or in some cases go near them.

Bedrooms are a place where we can be comfortable and we can sit back and relax.

When we are tired or not feeling the best we

can go to our room, shut our door, and lay

down and relax. Maybe even turn on some music or read a book or magazine. My bed is

where I to retreat to when I want to relax. I have a double bed with four pillows and

my favorite comforter. It is a Little

Mermaid comforter, I know it is childish but it is soft

and warm. And of course my kle Me Elmo sits on my bed and keeps me company. A

lot of times I just lay down and close my eyes and daydream about places I'd to see

or think about things that ma

ke me happy. One thing we should not do is think about

things we need to get done or anything that makes us feel stressed because then we'll

never feel relaxed. I usually try to stay away from these sort of thoughts and it usually

works out well.

The reas

on my bedroom is so important to me is because my room holds all of my

personal belongings, which are very important to me. Also my room is a comfortable

place to study or just to relax.

I can also have privacy whenever I want it by resorting to my room,

this may be

hard for some people if they share a room. Whenever my mom is nagging at me or when

I'm stressed out with school or work, I to go into my room and just be myself. All my

belongings in my room surround me and make me realize everything is g

oing to be all

right. It gives me a sense of security.

The way my room is set up makes it kind of cluttered, but that is the way I it

and I don't care what anyone says. As you first come into my room, to the right is my

dresser. My dresser is full of

things perfume, jewelry, hair ties, my alarm clock and

just a bunch of junk, mostly things that come out of my pockets at the end of the day. The

dresser itself is brown with six drawers, sets of three side by side. Diagonally across from

that is my

curio cabinet which holds all of my porcelain dolls, the cabinet is a light brown

with glass shelves. Next to my bed which is in the middle of the room is my

entertainment center which holds my stereo and pictures and just odds and ends.

Everything is wort

h keeping.

I believe that other people feel the same way about their rooms and homes, it gives

people a sense of security in a way that you can control what goes in your room and who

goes in your room. It sort of gives people power which may mean a lot to

some people.

My room holds almost all of my personal belongings, which I think almost everybody's

rooms do. I am sort of protective of the things in my room because a lot of my belongings

have sentimental value. My most treasured items are my collection o

f porcelain dolls

which are placed neatly in my curio cabinet. I have about fifteen dolls and if anything

would ever happen to those dolls I would be extremely upset and very furious. Nobody,

except myself, is allowed to touch them, not even my mother.

I'

m sort of a pack rat so I keep everything from old clothes to my childhood stuffed

animals which are all neatly sitting on my hope chest in my room. My hope chest is filled

with things I will need in the future towels, cooking utensils, blankets, old

picture

frames and other little things, these things mean a lot to me because a lot of these objects

belonged to my late grandmother and I am honored to own them. I treasure all my

belongings and do not other people to move or to borrow without asking

and I think

that a lot of people feel the same way. When someone touches our things we get upset

and I think in a way we are sort of honoring our possessions.

What my point is that everybody has something or some place that is important to

them and has m

eaning and a lot of times it is people's bedrooms and homes because it

belongs to us and we cherish these places. Bedrooms are a place of comfort and in some

cases a sense of security. It is a place of privacy when we need to be alone or just to sit

down a

nd take a load off. We can just be ourselves. So the next time someone gets

touchy when you are handling their things just

10 tháng 8 2018

Everyday after finishing my personal schedule outside, I incontinently come back home to get into my dream world - my room. It is a spacious room right next to the stairs. The thing I most is the balcony looking over a small garden. The walls are covered with wallpapers in my favorite flowery pattern. On the window there are blinds to prevent light from coming into the room in the early morning. I also put some tiny houseplant in order to purify the atmosphere. A single bed together with a bedside table full of cosmes is placed in the corner next to the window. On the opposite side stands my little bookshelf full of novels and comic books. There is also vacuum cleaner to keep the room in neat and tidy condition all the time. This room has become my greatest adoration because of the convenience and privacy it brings about.
 

8 tháng 9 2019

a) xylophone ; b) arrow

9 tháng 4 2018

In the future, I think people won't be worried about travelling because of teleporters.It will look a big magic box or maybe it will be designed as a magic lift.In my opinion, it will be powered by solar energy and it will combine the function of a 3D map. Just think about going into a teleporter in France and choosing Vietnam as the destination. Then, 3 minutes later, you will be in Hanoi - Vietnam. That will be great.People can use it anytime and anywhere. It won't take a lot of space.I think it will replace all other vehicles and it will make people around the world closer.

9 tháng 4 2018

I think in the future, most people will travel by flying cars.I think that it will have 2 wings so that it can fly as a plane. It will not be as big as the plane, but its speed will be higher than any other vehicles now.I think flying cars will use solar power with super thin batteries and they will use the technology called Vehicle-to-Vehicle communication, or V2V, which means cars will communicate with each other to avoid crashing. A flying car will be used for air transport, but it can also be used on the road. People can control it by touching on the control panel or they can set it in the automated control system. It can be used both in the city and in the countryside.I think flying cars will be one of the most popular means of transport in the future because they are environmentally friendly and we can avoid traffic jams by using them. However, I think we may need a sky safety system to avoid crashing.I think flying cars will be one of the most popular means of transport in the future because they are environmentally friendly and we can avoid traffic jams by using them. However, I think we may need a sky safety system to avoid crashing.