K. ACM

Codeforces
IDCF10159K
Time2000ms
Memory64MB
Difficulty
English · Original
Formal · Original
Programming contests are fun! So fun in fact, that you find yourself browsing online through hundreds of programming-related tasks, checking if they are about competitive programming. As quite a few of those tasks were not what you were looking for, you were wondering if you could write a program that classifies the problems for you! You figured out that the following classification works every time: If the task description mentions "ACM", then the task is about competitive programming and will thus be very fun to solve. Otherwise, the task is not. You are given the task description, consisting of only uppercase letters of the Latin alphabet (_A_ through _Z_). It is guaranteed that there will be at least one and at most 106 characters. Print "_Fun!_" if the statement contains _ACM_, and "_boring..._" otherwise. ## Input You are given the task description, consisting of only uppercase letters of the Latin alphabet (_A_ through _Z_). It is guaranteed that there will be at least one and at most 106 characters. ## Output Print "_Fun!_" if the statement contains _ACM_, and "_boring..._" otherwise. [samples]
**Definitions** Let $ S $ be a string over the alphabet $ \{A, B, \dots, Z\} $, with $ 1 \leq |S| \leq 10^6 $. **Constraints** $ S $ contains only uppercase Latin letters. **Objective** Determine whether the substring "ACM" appears in $ S $. - If "ACM" $ \subseteq S $, output "Fun!". - Otherwise, output "boring...".
API Response (JSON)
{
  "problem": {
    "name": "K. ACM",
    "description": {
      "content": "Programming contests are fun! So fun in fact, that you find yourself browsing online through hundreds of programming-related tasks, checking if they are about competitive programming. As quite a few o",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 65536
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10159K"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Programming contests are fun! So fun in fact, that you find yourself browsing online through hundreds of programming-related tasks, checking if they are about competitive programming. As quite a few o...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ S $ be a string over the alphabet $ \\{A, B, \\dots, Z\\} $, with $ 1 \\leq |S| \\leq 10^6 $.\n\n**Constraints**  \n$ S $ contains only uppercase Latin letters.\n\n**Objective**  \nDeterm...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments