結果
| 問題 |
No.3054 Modulo Inequalities
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 12:47:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 82,232 KB |
| 実行使用メモリ | 77,368 KB |
| 最終ジャッジ日時 | 2025-06-12 12:48:56 |
| 合計ジャッジ時間 | 9,717 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 16 RE * 15 |
ソースコード
x, y = 7, 5 # Initial valid solution (a=3, b=4, c=5)
X = int(input())
while True:
current_digits = len(str(y))
if current_digits == X:
a = (x - 1) // 2
b = a + 1
print(a, b, y)
break
# Generate next solution using recurrence relations
next_x = 3 * x + 4 * y
next_y = 2 * x + 3 * y
x, y = next_x, next_y
gew1fw