{"blog_url":"https://sugarknri.hatenablog.com/","author_name":"sugarknri","height":"190","width":"100%","url":"https://sugarknri.hatenablog.com/entry/2016/04/10/083857","categories":[],"blog_title":"\u30e1\u30e2","provider_name":"Hatena Blog","title":"yukicoder No.70 \u7761\u7720\u306e\u91cd\u8981\u6027\uff01","published":"2016-04-10 08:38:57","provider_url":"https://hatena.blog","type":"rich","author_url":"https://blog.hatena.ne.jp/sugarknri/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2016%2F04%2F10%2F083857\" title=\"yukicoder No.70 \u7761\u7720\u306e\u91cd\u8981\u6027\uff01 - \u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u554f\u984c\u306f\u3053\u3061\u3089 No.70 \u7761\u7720\u306e\u91cd\u8981\u6027\uff01 - yukicoder0\u2266a,b\uff1cp\u306e\u3068\u304d\u3001a-b\u3092p\u3067\u5272\u3063\u305f\u3042\u307e\u308a\u306f(a-b+p)%p\u3067\u8a08\u7b97\u3067\u304d\u308b h\u6642m\u5206\u3092\u30011\u65e5\u304c\u59cb\u307e\u3063\u3066\u304b\u3089(h*60+m)\u5206\u304c\u7d4c\u904e\u3057\u3066\u3044\u308b\u3068\u898b\u308c\u3070 h1\u6642m1\u5206\u304b\u3089h2\u6642m2\u5206\u307e\u3067\u306e\u6642\u9593\u306f(h2*60+m2-(h1*60+m1)+1440)%1440\u3067\u6c42\u3081\u308b\u4e8b\u304c\u3067\u304d\u308b \uff08C\u3067\u306f\u3001\u4f8b\u3048\u3070-5%3\u306f-2\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\uff09 int main(){ int a,b,c,d,n,s=0; scanf(\"%d\",&n); while(n--){ scanf(\"%d:%d%d:%d\",&a,&b,&c,&d); s+=(c*60+d-(a*\u2026","version":"1.0","image_url":null}