Swift Challenge:a problemset you can read the statement of each problem in 60s.

Revision en5, by wuhudsm, 2023-08-27 20:27:51

Hi guys,here I'd like to share my problem set in an interesting way. All the problems are created by myself.

They contain my aesthetic of problems: the neater,the better. It should be also interesting and best to have educational significance.

You can find the editorial for all the problems in the link,so I will only write down some interesting points under the statement.

Let's go :)

1.Increasing and Decreasing

Construct an array $$$a$$$ consisting of $$$n$$$ integers which satisfies the following conditions:

  • $$$a_1=x,a_n=y$$$;
  • $$$a$$$ is strictly increasing;
  • if we denote $$$b_i=a_{i+1}-a_{i}$$$ for $$$1 \leq i \leq n-1$$$, then $$$b$$$ is strictly decreasing.
Constraint
Difficulty
Point

2.(Yet Another) Increasing and Decreasing

Construct an array $$$a$$$ consisting of $$$n$$$ integers which satisfies the following conditions:

  • $$$a_1=x$$$;
  • $$$a_n<2^30$$$
  • $$$a$$$ is strictly increasing;
  • if we denote $$$b_i=a_{i+1}⊕a_{i}$$$ for $$$1 \leq i \leq n-1$$$, then $$$b$$$ is strictly decreasing($$$⊕$$$ is bitwise-xor).
Constraint
Difficulty
Point

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en20 English wuhudsm 2023-08-31 14:33:11 47 Tiny change: 'Hi guys,he' -> '(Last updated time:2023/8/31,14 problems)\n\nHi guys,he'
en19 English wuhudsm 2023-08-31 13:45:56 3399
en18 English wuhudsm 2023-08-30 11:26:05 4 Tiny change: 'y(0 \le y \le 2^{30})$ ' -> 'y(0 \le y < 2^{30})$ '
en17 English wuhudsm 2023-08-29 13:11:56 1 (published)
en16 English wuhudsm 2023-08-29 13:09:50 4 Tiny change: 'eedback). All the pr' -> 'eedback). \n\nAll the pr'
en15 English wuhudsm 2023-08-29 13:09:30 701
en14 English wuhudsm 2023-08-29 12:59:15 480
en13 English wuhudsm 2023-08-27 22:58:49 16 Tiny change: 'e array.\nFind the' -> 'e array.\n\nFind the'
en12 English wuhudsm 2023-08-27 22:11:08 4
en11 English wuhudsm 2023-08-27 21:59:36 1186
en10 English wuhudsm 2023-08-27 21:50:33 944
en9 English wuhudsm 2023-08-27 21:46:07 898
en8 English wuhudsm 2023-08-27 21:30:22 293
en7 English wuhudsm 2023-08-27 21:26:51 924
en6 English wuhudsm 2023-08-27 21:17:21 3630
en5 English wuhudsm 2023-08-27 20:27:51 827
en4 English wuhudsm 2023-08-27 20:04:10 101
en3 English wuhudsm 2023-08-27 20:00:44 379 Tiny change: 'asing.\n\n$1 \le x <' -> 'asing.\n\n- $1 \le x <'
en2 English wuhudsm 2023-08-27 19:41:13 54
en1 English wuhudsm 2023-08-27 19:39:52 508 Initial revision (saved to drafts)