2022-09-08から1日間の記事一覧
解いた問題 AtCoderの「B - OddString」 提出した回答 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); sc.close(); StringBuilder sb = new StringB…
解いた問題 AtCoderの「B - Palace」 提出した回答 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); Map<Integer, Double> map</integer,>…