ICPC Miền Trung 2023-2024 - Bài L: Welcome
Đề bài
L. Welcome
Standard I/O | Time Limit: 1s | Memory Limit: 512 MB
(Python on oj.vietnamson.com: 2s)
Bi's task is to typeset the message printed on HUSC's electronic board for the ICPC Asian Hue 2023 contest. The message line is: "Welcome Hue University of Sciences". Instead of typesetting, Bi copies a multi-line text from the HUSC website with the purpose of choosing words to create the above message. Ask the students to determine whether Bi received the message from the above text or not?
Input
Input consists of a number of lines, each with many words separated by one space characters.
Output
Print $Yes$ if the above message appears and $No$ otherwise (case sensitive).
Note (VIETNAMSON)
- Problem of The 2023 ICPC Vietnam Central Provincial Programming Contest (Hue University of Sciences, September 22, 2023). The statement and samples are kept verbatim from the original PDF.
- In the original PDF all samples are printed in one table; here they are split into separate samples (content unchanged).
- Interpretation (checked with the official tests on VNOJ): the answer is $Yes$ exactly when each of the five words "Welcome", "Hue", "University", "of", "Sciences" occurs as a whole word (case sensitive) somewhere in the text, in any order. Requiring the words to appear in this order is rejected by the official tests. A word glued to punctuation (e.g. "Welcome,") is a different word.
- Python on oj.vietnamson.com: time limit 2 s, memory limit 1 GB.
Input
Welcome Hue
University
of Sciences
Output
YesInput
welcome Hue University of Sciences
Output
NoInput
Welcome Hue city
Hue is the capital of Thua Thien
Hue province
University of Hue
of my life
Sciences scientific fields
or scientific disciplines
Output
YesÝ tưởng và lời giải chi tiết
Phần phân tích ý tưởng, các cách giải từ cơ bản đến tối ưu kèm code C++/Python và chấm thử trên VIETNAMSON OJ dành cho học viên đã đăng ký gói.
- Không biết học gì trước, học gì sau, học lan man nên kiến thức bị hổng.
- Bí bài không ai gỡ, ngồi cả buổi vẫn không ra rồi bỏ cuộc.
- Code chạy được nhưng không đủ điểm, không biết sai ở đâu, chậm ở đâu.
- Không có đề thi thử và người chấm, nên không biết mình đang ở mức nào.
- Dễ nản giữa chừng khi không có ai theo sát.
- Lộ trình 111 buổi video sắp sẵn từ dòng code đầu tiên đến đề HSG thật của các tỉnh.
- Thầy trực tiếp gỡ bí, chữa bài cho từng em qua nhóm Zalo riêng.
- Hệ thống chấm bài tự động 24/7 và thi thử HSG hằng tuần để biết chính xác mình đang ở đâu.
- Đóng học phí một lần, thầy kèm lâu dài: từ thi chuyên Tin đến HSG quốc gia và cả khi lên đại học.
