输入外挂(整型)

直接拿着用就行...

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int n,m;

inline int getInt(){
    int w = 0,q = 0;
	char ch = getchar();
	while((ch < '0' || ch > '9') && ch != '-') ch = getchar();
	if(ch == '-') q = 1, ch = getchar();
	while(ch >= '0' && ch <= '9') w = w * 10 + ch - '0', ch = getchar();
	return q ? -w : w;
}

int main()
{
    n = getInt();
    m = getInt();
    printf("%d  %d\n",n,m);
    
    return 0;
}

猜你喜欢

转载自blog.csdn.net/charles_zaqdt/article/details/81197004