提交记录 12492


用户 题目 状态 得分 用时 内存 语言 代码长度
Sweetlemon test. 自定义测试 Accepted 100 150.451 ms 36 KB C++11 428 B
提交时间 评测时间
2020-04-14 10:50:41 2023-09-03 19:40:17
#include <iostream>
using namespace std;
typedef long long ll;

inline ll mul(ll a,ll b);
int main(void){
    ll a,b,res;
    a=1ll<<30;
    b=1ll<<29;
    a+=12313234;
    b+=76843625;
    for (int i=1;i<=10000000;i++){
        ll c=mul(a,b);
        res+=c;
    }
    cout << res << endl;
    return 0;
}

ll mul(ll a,ll b){
    ll ans=0;
    while (b){
        (b&1)?(ans+=a):(0);
        b>>=1,a<<=1;
    }
    return ans;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1150.451 ms36 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-26 00:21:47 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠