Is C++ have a 64 bit integer type?What is it? and could i use / and % with it?Please help me!!!Thank you very much!
Its 'long long'. You can use operators with it just like you can with an int.
Thank for your help!Can you tell me why when i write:
long long k;scanf("%d",&k);
i will get a very strange number but when i use
cin>>k;
it work normaly?
Because %d is for ints, not long longs.
What you use instead depends on what compiler you have.. the online judge here uses %lld, whereas something like Dev-Cpp uses %I64d.
Thank again!!!
Oh, I dont know how to use scanf with unsigned long long variables.Tell me how, please!
google.com/search?q=scanf+un ... =firefox-a