QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#199418#1461. Greedy Algorithm123456667WA 0ms3584kbC++14389b2023-10-04 12:05:362023-10-04 12:05:36

Judging History

你现在查看的是最新测评结果

  • [2023-10-04 12:05:36]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3584kb
  • [2023-10-04 12:05:36]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

const int N = 1e5 + 5;
int n, k;
int arr[N];

void solve()
{
    for(int i = 1; i <= n; i++){
        scanf("%d", &arr[i]);
    }
    int maxk = n / 20;
    int mink = 2;
    while(mink < maxk && n % maxk != 0)
    {
        maxk--;
    }
    cout << maxk;
}

int main()
{
    cin >> n;
    solve();
    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3584kb

input:

2 3
1 2 3
4 5 99

output:

0

result:

wrong answer 1st numbers differ - expected: '8', found: '0'