违规紫衫

P1001 A+B Problem

514czh @ 2024-10-07 09:44:55

怎么卡常?


by 514czh @ 2024-10-07 10:22:46

借鉴acwing

#include <bits/stdc++.h>
using namespace std;
int st = clock();
int main() {
    long long a, b; cin>>a>>b;
    while (clock() - st < 995000) {}
    cout<<a+b;
    return 0;
}

by luyulin521 @ 2024-10-07 10:25:50

头文件你得用这个

#

#include<cstdio>
#include<iostream>
#include<cmath>
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream.h>
#include<iomanip.h>
#include<bitset>
#include<cctype>
#include<cerrno>
using namespace std;
long long a,b;
long long ans;
long long sbsbsbsbsb;
string s="                                                        ";
int main(){
    cin>>a>>b;
    cout<<a+b;
    return 0;
}

上一页 |