結果
問題 |
No.3259 C++ → Rust → Python
|
ユーザー |
![]() |
提出日時 | 2025-09-06 13:04:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,288 KB |
実行使用メモリ | 56,208 KB |
最終ジャッジ日時 | 2025-09-06 13:04:44 |
合計ジャッジ時間 | 2,456 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
from collections import deque, defaultdict, Counter from bisect import bisect_left, bisect_right from itertools import permutations, combinations from heapq import heappop, heappush import math, sys # input = sys.stdin.readline _int = lambda x: int(x)-1 MOD = 998244353 #10**9+7 INF = 1<<60 Yes, No = "Yes", "No" L, R = map(int, input().split()) S = set() for i in range(L, R+1): if i <= 295: S.add("a") elif i <= 416: S.add("b") else: S.add("c") print(len(S)-1)