#include <iostream>
#include <time.h>
#define sum(a,b) (a+b)
#define TIME_TILL_UTC_00(hr,min) ((((23-(hr)) * 60) + ((60 - min))) * 60)
#define SECONDS_IN_A_DAY 24*60*60
int main(){
int x = 10, y = 20;
int ans = sum(x,y);
std::cout<<"ans: "<<ans<<"\n";
time_t t = time(NULL);
struct tm* ti = gmtime(&t);
int secondToUtc00 = TIME_TILL_UTC_00(ti->tm_hour, ti->tm_min);
std::cout<<"hr: "<<ti->tm_hour<<", min: "<<ti->tm_min<<"\n";
std::cout<<"secondToUtc00: "<<secondToUtc00;
std::cout<<"\nin a day"<<SECONDS_IN_A_DAY;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dGltZS5oPgojZGVmaW5lIHN1bShhLGIpIChhK2IpCiNkZWZpbmUgVElNRV9USUxMX1VUQ18wMChocixtaW4pICAgICAgICAgICAgICAgICgoKCgyMy0oaHIpKSAqIDYwKSArICgoNjAgLSBtaW4pKSkgKiA2MCkKI2RlZmluZSBTRUNPTkRTX0lOX0FfREFZICAgICAgICAgICAgICAgICAgICAgICAgMjQqNjAqNjAKaW50IG1haW4oKXsKICAgIGludCB4ID0gMTAsIHkgPSAyMDsKICAgIGludCBhbnMgPSBzdW0oeCx5KTsKICAgIHN0ZDo6Y291dDw8ImFuczogIjw8YW5zPDwiXG4iOwogICAgdGltZV90IHQgPSB0aW1lKE5VTEwpOwogICAgc3RydWN0IHRtKiB0aSA9IGdtdGltZSgmdCk7CiAgICBpbnQgc2Vjb25kVG9VdGMwMCA9IFRJTUVfVElMTF9VVENfMDAodGktPnRtX2hvdXIsIHRpLT50bV9taW4pOwogICAgc3RkOjpjb3V0PDwiaHI6ICI8PHRpLT50bV9ob3VyPDwiLCBtaW46ICI8PHRpLT50bV9taW48PCJcbiI7CiAgICBzdGQ6OmNvdXQ8PCJzZWNvbmRUb1V0YzAwOiAiPDxzZWNvbmRUb1V0YzAwOwogICAgc3RkOjpjb3V0PDwiXG5pbiBhIGRheSI8PFNFQ09ORFNfSU5fQV9EQVk7CiAgICByZXR1cm4gMDsKfQ==