编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#16859 #1070. youngmagician's victory is made of numerous duplicates of himself and stop ak Wrong Answer 40 321 ms 428 K C++ 17 / 1.1 K C192022214205 2024-03-16 17:55:33
显示原始代码
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
#define if0(x) for (int64_t i = 0; i < x; i++)

#define jf0(x) for (int j = 0; j < x; j++)

#define if1(x) for (int i = 1; i <= x; i++)

#define jf1(x) for (int j = 1; j <= x; j++)


int64_t qpow(int64_t a, int64_t n) {
    int64_t ans = 1;
    while (n) {
        if (n & 1) {
            ans = ans * a;
        }
        a = a * a;
        n >>= 1;
    }
    return ans;
}
void solve() {
    int64_t n;
    int64_t tmp, ans = 0;
    cin >> n;
    // int64_t round=qpow(2, n);
    if0(2 << (n - 1))
    // if0(round)
    {
        cin >> tmp;
        if (tmp > 1)
            ans++;
    }
    if (ans == 0) {
        cout << "we are top " << 1 << " !";
        return;
    }
    int64_t ans2 = 0;
    // cout<<"ans"<<ans;
    while (ans > 0) {
        ans /= 2;
        ans2++;
    }
    // int64_t ans3=qpow(2, ans2);
    // char a='0'+ans3;

    cout << "we are top " << (2 << (ans2 - 1)) << " !";
    return;
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t = 1;
    while (t--) {
        solve();
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:40
测试点 #1
Wrong Answer
得分:0
用时:5 ms
内存:328 KiB

输入文件(1.in

13 
1 5372 18675 1 1 1 1 28309 16157 29464 1 4851 1 1 23730 31847 1 1296 4483 1 1 1 1 21487 1 1 1 3
<36162 bytes omitted>

答案文件(1.out

we are top 2048 !

用户输出

we are top 8192 !

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:4 ms
内存:412 KiB

输入文件(2.in

2 
13252 14051 1 19573 

答案文件(2.out

we are top 4 !

用户输出

we are top 4 !

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:6 ms
内存:320 KiB

输入文件(3.in

15 
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
<65441 bytes omitted>

答案文件(3.out

we are top 1 !

用户输出

we are top 1 !

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:137 ms
内存:352 KiB

输入文件(4.in

20 
1 1 1 1000000000000000000 1000000000000000000 1000000000000000000 1000000000000000000 1 1000000
<11534241 bytes omitted>

答案文件(4.out

we are top 131072 !

用户输出

we are top 1048576 !

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:169 ms
内存:428 KiB

输入文件(5.in

20 
1000000000000000000 1000000000000000000 1000000000000000000 1000000000000000000 100000000000000
<16252833 bytes omitted>

答案文件(5.out

we are top 262144 !

用户输出

we are top 1048576 !

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0