乱写0分

zhaocong 2023-01-30 13:05:36 2023-01-30 13:05:55 8 返回题目

#include<stdio.h>
using namespace std;
#define int long long
int T,p,sum=2;
signed main(){
	scanf("%lld",&T);
	while(T--){
		scanf("%lld",&p);
		sum=2;
		while(sum<p){
			sum*=sum;
		}
		printf("%lld\n",sum%p);
	}
	return 0;
}
{{ vote && vote.total.up }}

共 1 条回复

wangruichen

so?