< ルクさんのAI生成コード置き場

Python初期

投稿者ルク
言語Python3
更新日時 (JST)2026-11-28 13:57:19
サイズ609 Byte
参照URL

更新すると更新日時が変わるので、不都合がある場合は新しく投稿してください。

テキストで開く
import sys
from atcoder import dsu
from itertools import permutations
from bisect import bisect_left, bisect_right
import random
import math
from collections import deque
from collections import Counter
from collections import defaultdict
inf = 1 << 60
sys.setrecursionlimit(10**7)


def sgn(x):
    if x > 0:
        return 1
    elif x == 0:
        return 0
    else:
        return -1


def popC(x):
    ans = 0
    while x != 0:
        ans += x % 2
        x //= 2
    return ans


def LI():
    return list(map(int, input().split()))


def II():
    return int(input())


def SI():
    return input()