2022-09-02から1日間の記事一覧
解いた問題 AtCoderの「A - RGB Cards」 atcoder.jp 提出した回答 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = s…
解いた問題 AtCoderの「C - Otoshidama」 atcoder.jp 提出した回答 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int Y = sc.nextInt(); int x = …