結果
| 問題 | No.2246 1333-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-17 22:03:37 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 65 ms / 2,000 ms |
| + 730µs | |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 540 ms |
| コンパイル使用メモリ | 95,848 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-30 04:39:23 |
| 合計ジャッジ時間 | 3,869 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
if 1:
s = N //36
t = N%36
if t == 0:
print('8'+'9'*s)
exit()
count = 0
for i in range(1,9):
if count + 9-i < t:
count += 9-i
else:
a = i
b = t-count+i
break
print(str(a)+str(b)*(s+1))