Help us understand the problem. What is going on with this article?

ABC - 012- A&B&C

More than 1 year has passed since last update.

AtCoder ABC 012 A&B&C

AtCoder - 012

A - スワップ

    private void solveA() {
        int a = nextInt();
        int b = nextInt();

        out.println(b + " " + a);
    }

B - 入浴時間

    private void solveB() {
        int n = nextInt();
        int h = n / 3600;
        n %= 3600;
        int m = n / 60;
        n %= 60;
        int s = n;
        System.out.printf("%02d:%02d:%02d", h, m, s);
    }

C - 九九足し算

  • $1 \times 1 から 9 \times 9 $の合計は2025
    private void solveC() {
        int n = 2025 - nextInt();

        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= 9; j++) {
                if (i * j == n) {
                    out.println(i + " x " + j);
                }
            }
        }
    }
shihou22
暇なおじさん
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away