問題一覧 > 教育的問題

No.8054 Almost Right Isosceles Triangle

レベル : / AI推定難易度 : 1100 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 51
作問者 : tempura_pp / テスター : chocorusk
お気に入りにしたユーザー ProblemId : 2908 / 自分の提出
問題文最終更新日: 2019-04-01 20:59:00
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April Fool Contest 2019 (順位表) の他の問題:

Problem Statement

Find one triple of positive integers $(a,\ b,\ c)$ satisfying the following conditions.

  • $a^2+b^2=c^2$
  • $b=a+1$
  • $c$ has $X$ digits in decimal notation
It can be proved that a triple satisfying the conditions always exists.

Where is the April Fools' element?

I don't know.

Input

$X$

  • $1\le X\le 18$
  • $X$ is an integer

Output

Print $a,\ b,\ c$ satisfying the conditions on one line, separated by spaces. If there are multiple answers, you may print any of them.

Sample

Sample 1
Input
1
Output
3 4 5

  • $3^2+4^2=25=5^2$
  • $4=3+1$
  • 5 is a 1-digit integer

Sample 2
Input
3
Output
119 120 169

The triple (696, 697, 985) is also accepted.

Sample 3
Input
9
Output
159140519 159140520 225058681

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。