#pragma warning(disable:4996)//第一种:处理scanf在VS2022中报错 #define _CRT_SECURE_NO_WARNINGS//第二种:处理scanf在VS2022中报错 #include<bits/stdc++.h> using namespace std; int main() { int a, b; scanf(“%d %d”, &a, &b)
一,普通读入数据 有一下5种方式: n, m = [int(i) for i in temp.split(' ')]n, m = map(int,raw_input().split(' '))import sysfor line in sys.stdin:for data in line.split(' '):print dataimport sysarr = []for line