結果
| 問題 |
No.2246 1333-like Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-18 18:22:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-09-18 13:27:37 |
| 合計ジャッジ時間 | 2,095 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
L = []
for i in range(12,100):
s = str(i)
if int(s[0]) < int(s[1]):
L.append(i)
le = len(L)
y = N//le
if N % le == 0:
print(str(L[-1])+str(L[-1]%10)*(y-1))
else:
x = L[N%le-1]
print(str(x)+str(x%10)*y)