提出 #45248819
ソースコード 拡げる
N, A, B = map(int, input().split()) print(sum(i for i in range(1, N+1) if A <= sum(map(int, str(i))) <= B))
提出情報
| 提出日時 | |
|---|---|
| 問題 | ABC083B - Some Sums |
| ユーザ | KoyanagiHitoshi |
| 言語 | Python (CPython 3.11.4) |
| 得点 | 200 |
| コード長 | 108 Byte |
| 結果 | AC |
| 実行時間 | 15 ms |
| メモリ | 8644 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | s1.txt, s2.txt, s3.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, s1.txt, s2.txt, s3.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01.txt | AC | 14 ms | 8476 KiB |
| 02.txt | AC | 11 ms | 8524 KiB |
| 03.txt | AC | 15 ms | 8384 KiB |
| 04.txt | AC | 14 ms | 8432 KiB |
| 05.txt | AC | 14 ms | 8480 KiB |
| 06.txt | AC | 14 ms | 8628 KiB |
| 07.txt | AC | 14 ms | 8596 KiB |
| 08.txt | AC | 13 ms | 8464 KiB |
| s1.txt | AC | 10 ms | 8644 KiB |
| s2.txt | AC | 9 ms | 8504 KiB |
| s3.txt | AC | 10 ms | 8500 KiB |