CSU 1718(脑洞)

1718: And Then There Was 5

Time Limit: 1 Sec   Memory Limit: 128 MB
Submit: 98   Solved: 70
[ Submit][ Status][ Web Board]

Description

Input

Output

Sample Input

4
3 2
123456 6
999999 8
765432 7

Sample Output

2 5
6 5
8 5
7 5

HINT

Source



题意:解题与题意无关,略过



题解:观察数据可知答案,输入(P,D),输出(D,5)



#include<cstdio>  
#include<cstring>  
#include<cstdlib>  
#include<cmath>  
#include<iostream>  
#include<algorithm>  
#include<vector>  
#include<map>  
#include<set>  
#include<queue>  
#include<string>  
#include<bitset>  
#include<utility>  
#include<functional>  
#include<iomanip>  
#include<sstream>  
#include<ctime>  
using namespace std;  
  
#define N int(1e5)  
#define inf int(0x3f3f3f3f)  
#define mod int(1e9+7)  
typedef long long LL;  
  


double pi=2*asin(1.0);

int main()  
{  
#ifdef CDZSC  
    freopen("i.txt", "r", stdin);  
    //freopen("o.txt","w",stdout);  
    int _time_jc = clock();  
#endif  
	int t,n,p;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%d%d",&n,&p);
		printf("%d %d\n",p,5);
	}
    return 0;  
}  












你可能感兴趣的:(CSU 1718(脑洞))