1个WA,2个TLE,大佬帮我讲一下题呗
查看原帖
1个WA,2个TLE,大佬帮我讲一下题呗
1266815
A_liusizhe楼主2024/8/16 14:58
#include <iostream>

using namespace std;

int main() {
    int taskId;
    cin >> taskId;
    if (taskId == 1) {
        cout << "20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 20000000000000000" <<endl;
    } 
    else if (taskId == 2) {
        for(int i=1; i<=1; i+=0) cout<<'a';
    } 
    else if (taskId == 3) {
        cout<<"1000000000000000000000000000000000000000000000000";
        for(unsigned long long i=1; i<=1000000000000000000000000000000000000000000000000; i++)
            cout<<"1 ";
    } 
    else { // 这个 else 不会被执行
        cout << "OvoOvoovOovO" << endl;
    }
    return 0;
}
2024/8/16 14:58
加载中...