{"blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","author_name":"drken1215","blog_url":"https://drken1215.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/drken1215/","title":"AtCoder ABC 222 A - Four Digits (8Q, \u7070\u8272, 100 \u70b9)","height":"190","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","description":"\u8272\u3093\u306a\u65b9\u6cd5\u304c\u3042\u308b\u3002C \u8a00\u8a9e\u3067\u306f\u3001 printf() \u95a2\u6570\u3092\u7528\u3044\u308b\u306e\u304c\u697d\u3060\u3068\u601d\u308f\u308c\u308b\u3002 \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 0 \u4ee5\u4e0a 9999 \u4ee5\u4e0b\u306e\u6574\u6570 \u304c\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002 \u306e\u5148\u982d\u306b\u5fc5\u8981\u306a\u3060\u3051 0 \u3092\u3064\u3051\u30014 \u6841\u306e\u6587\u5b57\u5217\u306b\u3057\u305f\u3082\u306e\u3092\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u89e3\u6cd5 C \u8a00\u8a9e\u3067\u3042\u308c\u3070\u3001\u6574\u6570\u5024 \u306e\u524d\u306b\u30014 \u6841\u306b\u306a\u308b\u3088\u3046\u306b 0-padding \u3059\u308b\u64cd\u4f5c\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002 printf(\"%04d\\n\", N); \u30b3\u30fc\u30c9 #include <bits/stdc++.h> using namespace std; int main() { int N; scanf(\"%d\", &N); printf(\"%04d\\n\", \u2026","categories":["AtCoder","AtCoder100\u70b9","ABC-A","\u7070\u8272diff","\u6613\u3057\u3044\u6a19\u6e96\u5165\u51fa\u529b\u554f\u984c","1\u500b\u306e\u6574\u6570\u306e\u5165\u529b\u3092\u6271\u3046\u6613\u3057\u3044\u554f\u984c","NoviSteps8Q"],"url":"https://drken1215.hatenablog.com/entry/2024/04/03/231531","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F04%2F03%2F231531\" title=\"AtCoder ABC 222 A - Four Digits (8Q, \u7070\u8272, 100 \u70b9) - \u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","published":"2024-04-03 23:15:31"}