5 条题解

  • 0
    @ 2025-5-17 19:24:12

    </u>#include using namespace std; typedef unsigned long long ull; ull a,b,p,res; int main() { cin>>a>>b>>p; while(b) { if(b&1) res = (res + a)%p; b = b / 2; a = (a * 2)%p; } cout<<res; }</u>

    信息

    ID
    3
    时间
    1000ms
    内存
    128MiB
    难度
    8
    标签
    递交数
    2290
    已通过
    428
    上传者