<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>全探索</anon>
  </categories>
  <description>D - 壊れた電卓 問題概略 K種類の数字を使う時、Aとの最小の差はなにか 制約 A(1≦A≦1015)A(1≦A≦1015) K(1≦K≦10)K(1≦K≦10) 解法 前からP桁目までをAと同じ数にして、P+1桁目をQに、それ以降をRにして全探索すればいいと分かる 問題の芯 限りなく簡単に実装したい。時間に余裕があるなら、細かい条件はつけずに大まかに全探索 public static void main(String[] args) { long a = sc.nextLong(); int len = keta(a); A = new int[len]; for (int i = 0; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2018%2F07%2F06%2F175140&quot; title=&quot;D - 壊れた電卓　CODE FESTIVAL 2014 予選A  - バイトの競プロメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-06 17:51:40</published>
  <title>D - 壊れた電卓　CODE FESTIVAL 2014 予選A </title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2018/07/06/175140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
