Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

Instructor: Bi Youyi Qian Weikang
Courses: Bi Youyi Qian Weikang
Instructor: Dou Xiumin Wang Bin
Courses: Dou Xiumin Wang Bin
Instructor: Bi Youyi Rockwell Clancy
Courses: Bi Youyi Rockwell Clancy
Instructor: Thomas Bowden Shen Bin
Courses: Thomas Bowden Shen Bin
Instructor: Bao Hua Wang Bin
Courses: Bao Hua Wang Bin
Instructor: Qiao Heng Shen Bin
Courses: Qiao Heng Shen Bin
Instructor: Bi Youyi Li Mingjian
Courses: Bi Youyi Li Mingjian
Instructor: Long Yong Bi Youyi
Courses: Long Yong Bi Youyi
Instructor: Wang Bin Zhao Ying
Courses: Wang Bin Zhao Ying
Instructor: Bi Youyi Becky HSU
Courses: Bi Youyi Becky HSU
Instructor: Liu Meixiang Bi Youyi
Courses: Liu Meixiang Bi Youyi
Instructor: Shen Yanfeng Bi Youyi
Courses: Shen Yanfeng Bi Youyi
Instructor: Bao Shouxing Wang Bin
Courses: Bao Shouxing Wang Bin
Instructor: Ma Chengbin Shen Bin
Courses: Ma Chengbin Shen Bin
Instructor: YifeiZhu Shen Bin
Courses: YifeiZhu Shen Bin
Instructor: Yu-Chih Chen Bi Youyi
Courses: Yu-Chih Chen Bi Youyi
Instructor: PETER JOHN WEI