Dãy số chính phương đơn giản

View as PDF

Submit solution

Points: 100.00 (partial)
Time limit: 1.0s
Memory limit: 102M
Input: stdin
Output: stdout

Author:
Problem type

Phát biểu đề bài: Cho dãy số có quy luật như sau: 1,4,9,16,25,… Hãy tìm số thứ N của dãy số trên.

Dữ liệu vào: Gồm một số tự nhiên ~N (N≤ 10^9)~.

Kết quả: Gồm một số tự nhiên là kết quả của bài toán.

Ví dụ:
Input
5
Output
25

Subtasks:

  • Subtask 1: 60% số điểm có ~N≤ 10^4~.
  • Subtask 2: 40% số điểm không có ràng buộc gì thêm.

Comments

Please read the guidelines before commenting.


There are no comments at the moment.