text stringlengths 1.28k 97.9k |
|---|
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Takahashi will take part in an eating contest. Teams of N members will compete in this contest, and Takahashi's team consists of N players numbered 1 through N from youngest to oldest. The consumption coef... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Write a function to check if a course schedule can be completed given the total number of courses and a list of prerequisites. A course schedule can be completed if there is no cycle in the graph formed by... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Write a Python function to calculate the Greatest Common Factor (GCF) of two numbers. The function should take two arguments and return the GCF. If any of the numbers is zero, the function should return 0.... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Given an integer `n`, return the `nth` ugly number.
Ugly number is a positive number whose prime factors only include `2`, `3`, and/or `5`.
Example 1:
Input: n = 10
Output: 12
Explanation: [1, 2, 3, 4, ... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Given a string s and m queries. For each query delete the K-th occurence of a character x.
Input:
The first line contains the string s followed by an integer m.
The string consists of lowercase letters.
Af... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Alice and Bob play the following game :
There are N piles of stones with Si stones in the ith pile. Piles are numbered from 1 to N. Alice and Bob play alternately, with Alice starting. In a turn, the pl... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Fox Ciel has a board with n rows and n columns, there is one integer in each cell.
It's known that n is an odd number, so let's introduce <image>. Fox Ciel can do the following operation many times: she c... |
<|im_start|>system
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>
<|im_start|>user
Write a python function to implement a simple calculator that performs basic arithmetic operations (addition, subtraction, multiplication, division).
Solve the problem starting with the provided function ... |
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED) |
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 53