记录详情

Time Exceeded


  
# 状态 耗时 内存占用
#1 Accepted 2ms 248.0 KiB
#2 Accepted 2ms 212.0 KiB
#3 Time Exceeded ≥1002ms ≥680.0 KiB
#4 Time Exceeded ≥1000ms ≥700.0 KiB
#5 Time Exceeded ≥1000ms ≥668.0 KiB
#6 Time Exceeded ≥1001ms ≥684.0 KiB
#7 Time Exceeded ≥1001ms ≥680.0 KiB
#8 Time Exceeded ≥1001ms ≥652.0 KiB
#9 Time Exceeded ≥1001ms ≥680.0 KiB
#10 Time Exceeded ≥1000ms ≥648.0 KiB

代码

#include <stdio.h>
int main(void) {
	int n, a[100005], ans = 0;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
		scanf("%d", &a[i]);
	for (int i = 1; i <= n; i++)
		 for (int j = 1; j < i; j++)
			 if ((a[i] & a[j]) > (a[i] ^ a[j]))
				 ans++;
	printf("%d", ans);
	return 0;
}

信息

递交者
类型
递交
题目
P1002 统计
语言
C
递交时间
2024-08-27 19:33:02
评测时间
2024-08-27 19:33:02
评测机
分数
20
总耗时
≥8014ms
峰值内存
≥700.0 KiB