|
|
вернуться в форумg++ vs visual studio the same c++ code was accepted when I used visual studio, but gave TLE 8 with g++ 9 (or g++ 9, C11) Re: g++ vs visual studio Послано slamin 17 ноя 2014 03:48 Same happened to me. I've removed everything from the code except scanf("%d", &t); and it took 1.9 seconds just to read test #8 input using G++. Same code runs in 0.25 seconds under Visual C++ 2010. Re: g++ vs visual studio Thank you. I also scaned with scanf("%d", &t) and got ~1.5+/- sec using G++ and ~0.3 sec using VC++. Another idea to optimize is to scan with gets() and hex values. Edited by author 28.09.2016 00:02 Edited by author 28.09.2016 00:02 Re: g++ vs visual studio Послано c_pp 11 янв 2017 10:18 |
|
|