htmlhtml

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Hello World</h1>
<h2>
    <a href="http://www.baidu.com">
    My name is Wonder.
    </a>
</h2>
<input type="date">
<button>确定</button>
<h3>全是瞎写的,不要介意<h3>
</body>
</html>

pythonpython

# 简单的快速排序,从大到小
def quick_sort(number_list):
    if len(number_list) <= 1:
        return number_list
    pivot = number_list[0]
    left = []
    for i in range(1, len(number_list)):
        if number_list[i] > pivot:
            left.append(number_list[i])
    right = []
    for i in range(1, len(number_list)):
        if number_list[i] <= pivot:
            right.append(number_list[i])
    return quick_sort(left) + [pivot] + quick_sort(right)
number_list = input('直接填数字,不用空格')
print(quick_sort(number_list))

C++C++

// 简单的蛇形方阵
# include <bits/stdc++.h>
using namespace std;
int a[15][15];
int main() {
	int n;
	cin >> n;
	int k = 1;
	int x = 0;
	int y = 0;
	a[x][y] = k;
	k++;
	while (k <= n * n) {
		while (y + 1 < n && a[x][y + 1] == 0) {
			y += 1;
			a[x][y] = k;
			k++; 
		}
		while (x + 1 < n && a[x + 1][y] == 0) {
			x += 1;
			a[x][y] = k;
			k++; 
		}
		while (y - 1 >= 0 && a[x][y - 1] == 0) {
			y -= 1;
			a[x][y] = k;
			k++; 
		}
		while (x - 1 >= 0 && a[x - 1][y] == 0) {
			x -= 1;
			a[x][y] = k;
			k++; 
		}
	}
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			printf("%3d", a[i][j]); 
		}
		printf("\n");
	}
	return 0;
}

CC

# include <stdio.h>
int main() {
    int a, b;
    scanf("%d%d", &a, &b);
    printf("%d", a + b);
    return 0;
}

PascalPascal

var a, b: longint;
begin
    readln(a, b);
    writeln(a + b);
end.

JavaJava

import java.io.*;
import java.util.*;
public class Main {
    public static void main(String args[]) throws Exception {
        Scanner cin = new Scanner(System.in);
        int a = cin.nextInt(), b = cin.nextInt();
        System.out.println(a + b);
    }
}

JavaScript(Node.js)JavaScript(Node.js)

const fs = require('fs')
const data = fs.readFileSync('/dev/stdin')
const result = data.toString('ascii').trim().split(' ').map(x => parseInt(x)).reduce((a, b) => a + b, 0)
console.log(result)
process.exit()

RubyRuby

a, b = gets.split.map(&:to_i)
print a + b

PHPPHP

<?php
$input = trim(file_get_contents("php://stdin"));
list($a, $b) = explode(' ', $input);
echo $a + $b;

RustRust

use std::io;
fn main() {
    let mut input = String::new();
    io::stdin().read_line(&mut input).unwrap();
    let mut s = input.trim().split(' ');
    let a:i32 = s.next().unwrap()
               .parse().unwrap();
    let b:i32 = s.next().unwrap()
               .parse().unwrap();
    println!("{}", a + b);
}

GoGo

package main
import "fmt"
func main() {
    var a, b int
    fmt.Scanf("%d%d", &a, &b)
    fmt.Println(a + b)
}