2022-09-10から1日間の記事一覧
解いた問題 AtCoderの「B - Cakes and Donuts」 提出した回答 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); boolean flag = false; f…
解いた問題 AtCoderの「B - Bitter Alchemy」 提出した回答 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int X = sc.nextInt(); int minimum_m =…