{"title":"0\u56de\u76ee","published":"2023-05-20 00:50:35","image_url":null,"width":"100%","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflash.hatenablog.com%2Fentry%2F2023%2F05%2F20%2F005035\" title=\"0\u56de\u76ee - \u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306b\u306a\u308a\u305f\u3044\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u4eca\u65e5\u306e\u30d0\u30b0\u4f5c\u54c1\u3067\u3059\u3002\u5165\u529bn\u3092\u5143\u306bk\u56de\u8a08\u7b97\u3092\u3059\u308b\u554f\u984c\u3067\u3059(ABC192-C: C - Kaprekar Number)\u3002 use proconio::{input, marker::Chars}; fn main() { input! { n: Chars, k: usize, }; let mut a = n.to_owned(); // \u6570\u5b57(char)\u306e\u914d\u5217 let mut a_int = 0; // \u6587\u5b57\u5217a\u3092\u6574\u6570\u306b\u3057\u305f\u3082\u306e for _i in 1..=k { // a\u3092\u8a08\u7b97 // a_int\u3092\u66f4\u65b0 } println!(\"{}\", a_int); } \u3053\u308c\u3060\u3068\u3001k=0\u306e\u3068\u304d\u3001for\u5185\u90e8\u2026","blog_url":"https://flash.hatenablog.com/","height":"190","provider_name":"Hatena Blog","categories":["AtCoder","\u4eca\u65e5\u306e\u30d0\u30b0"],"version":"1.0","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306b\u306a\u308a\u305f\u3044\u3002","author_url":"https://blog.hatena.ne.jp/flashingwind/","author_name":"flashingwind","url":"https://flash.hatenablog.com/entry/2023/05/20/005035"}