{"url":"https://qnighy.hatenablog.com/entry/20081213/1229176573","blog_title":"\u7c21\u6f54\u306aQ","author_name":"qnighy","blog_url":"https://qnighy.hatenablog.com/","published":"2008-12-13 22:56:13","title":"\u7b2c7\u56de\u60c5\u5831\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u4e88\u9078\u7b2c1\u554f\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\uff20C","provider_name":"Hatena Blog","categories":["Programming"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20081213%2F1229176573\" title=\"\u7b2c7\u56de\u60c5\u5831\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u4e88\u9078\u7b2c1\u554f\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\uff20C - \u7c21\u6f54\u306aQ\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/qnighy/","type":"rich","width":"100%","height":"190","description":"o[]={1,5,10,50,100,500},a,i=6,c=0;main(){scanf(\"%d\",&a);a=1000-a;while(i--){c+=a/o[i];a=a%o[i];}printf(\"%d\",c);} \u3044\u307e\u306e\u3068\u3053\u308d\u3053\u3053\u307e\u3067\u3002114bytes\u3002\u3053\u308c\u3088\u308a\u77ed\u304f\u3067\u304d\u308b\u3060\u308d\u3046\u304b\u3002","version":"1.0","image_url":null,"provider_url":"https://hatena.blog"}