QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#127207#6634. Central SubsetEthan_xu#WA 1154ms7080kbC++20351b2023-07-19 14:05:532023-07-19 14:05:57

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-19 14:05:57]
  • 评测
  • 测评结果:WA
  • 用时:1154ms
  • 内存:7080kb
  • [2023-07-19 14:05:53]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std ;

int main()
{
    ios::sync_with_stdio(false) ;
    cin.tie(0) ;

    const int up = 1e6 ;
    vector<int> c(up + 1 , 0) ;
    for(int i = 2 ; i <= up ; i ++)
        for(int j = 1 ; j * j <= i ; j ++)
            c[i] = min(c[i] , c[j] + c[(i + j - 1) / j]) ;
    return 0 ;
}
/*



*/

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1154ms
memory: 7080kb

input:

2
4 3
1 2
2 3
3 4
6 7
1 2
2 3
3 1
1 4
4 5
5 6
6 4

output:


result:

wrong output format Unexpected end of file - int32 expected (test case 1)