广州税务技能大赛决赛

IOI 赛制

2025-10-13 14:30:00
2025-10-13 18:00:00

信息与公告

分值 题目序号
(k的倍数、相同的数位、倒水、三位分节法)
(积木游戏、众数)
(乒乓球比赛)
(将数组和折半、胶囊消消乐)
(倍数问题)
(消除游戏)
(最优划分)

Java 输入输出示例

点击展开/收缩
import java.io.InputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;

class Reader {
    final BufferedReader reader;
    StringTokenizer tokenizer;
    
    public Reader(InputStream input) {
        reader = new BufferedReader(new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }
    
    public String next() throws IOException {
        while (!tokenizer.hasMoreTokens())
            tokenizer = new StringTokenizer(reader.readLine());
        return tokenizer.nextToken();
    }
    
    public String nextLine() throws IOException {
        return reader.readLine();
    }
    
    public int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    
    public double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

public class Main {
    public static void main(String[] args) throws IOException {
        Reader reader = new Reader(System.in);
        int num1 = reader.nextInt();
        int num2 = reader.nextInt();
        
        String str = reader.next();
        
        System.out.println("第一个整数: " + num1);
        System.out.println("第二个整数: " + num2);
        System.out.println("读取的字符串: " + str);
    }
}

Python 输入输出示例

点击展开/收缩
# 读取第一行并分割为两个整数
num1, num2 = map(int, input().split())

# 读取第二行字符串
text = input()

# 原样输出(先输出两个整数,保持原始格式,再输出字符串)
print(num1, num2)
print(text)

C++ 输入输出示例

点击展开/收缩
#include <iostream>
#include <string>

using namespace std;

int main() {
    // 声明两个整数变量
    int num1, num2;
    // 声明字符串变量
    string str;
    cin >> num1 >> num2;
    cin >> str;
    // 输出
    cout << num1 << " " << num2 << '\n';
    cout << str;
    
    return 0;
}