A - Happy New Year 2025
Source: atcoder
Difficulty: 100

Problem Statement
You are given two positive integers
A
and
B
.
Output the square of
A + B
.
Constraints
1 \leq A,B \leq 2025
All input values are integers.
Input
The input is given from Standard Input in the following format:
A
B
Output
Print the answer.
Sample Input 1
20 25
Sample Output 1
2025
(20+25)^2=2025
.
Sample Input 2
30 25
Sample Output 2
3025
Sample Input 3
45 11
Sample Output 3
3136
Sample Input 4
2025 1111
Sample Output 4
9834496

C++ solution:
#include<bits/stdc++.h>
using namespace std;

int main(){
  long  A, B, x;
  cin >> A >> B;
  x = pow(A + B, 2);
  cout << x;
}

Go solution:
package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
  scanner := bufio.NewScanner(os.Stdin)
  scanner.Scan()
  n := strings.Split(scanner.Text(), " ")
  A, _ := strconv.Atoi(n[0])
  B, _ := strconv.Atoi(n[1])
  sum := A + B
  fmt.Println(sum * sum)
}

Java solution:
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        FastScanner sc = new FastScanner();

        long a = sc.nextLong(), b = sc.nextLong();

        System.out.println((long) Math.pow(a+b, 2));
    }

    public static class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

JavaScript solution:
function Main(input) {
	const inp = input.split("\n");
	console.log((Number(inp[0].split(" ")[0])+Number(inp[0].split(" ")[1]))**2)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Python solution:
a, b = map(int, input().split())
print((a + b) ** 2)

Ruby solution:
puts gets.split.map(&:to_i).sum ** 2