結果
| 問題 |
No.3054 Modulo Inequalities
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:29:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 77,248 KB |
| 最終ジャッジ日時 | 2025-06-12 14:30:22 |
| 合計ジャッジ時間 | 10,905 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 16 RE * 15 |
ソースコード
X = int(input())
x, y = 1, 1
if len(str(y)) == X:
a = (x - 1) // 2
if a > 0:
print(a, a + 1, y)
exit()
while True:
next_x = 3 * x + 4 * y
next_y = 2 * x + 3 * y
x, y = next_x, next_y
if len(str(y)) == X:
a = (x - 1) // 2
if a > 0:
print(a, a + 1, y)
break
gew1fw