Time Limit ??

Revision en6, by Nour, 2020-05-17 01:43:10

Hey Codeforces! I am using c++ language and I got time limit in a question cause of datatype and, min() and max() functions. I was getting the min between an int datatype and long long and casting that long long variable into int in the max and min functions and that made me go through time limit even my code is correct that made me doubt that my code idea is incorrect. When I switch that int variable into long long datatype (not to make casting inside the max and min functions), my code got accepted! Any thoughts ?? The time limit code: 80418368.. The accepted code: 80419422.. The problem: 1355A - Sequence with Digits.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en6 English Nour 2020-05-17 01:43:10 8 Tiny change: 'ssion:80418073]..\nThe p' -> 'ssion:80419422]..\nThe p'
en5 English Nour 2020-05-17 01:39:57 5
en4 English Nour 2020-05-17 01:39:24 114
en3 English Nour 2020-05-17 01:32:37 65
en2 English Nour 2020-05-17 01:31:41 67
en1 English Nour 2020-05-17 01:30:40 538 Initial revision (published)