Submission #2230

# Submission time Handle Problem Language Result Execution time Memory
2230 2013-07-20T10:35:08 Z cki86201 생일수 II (GA4_birthday2) C++
0 / 100
354 ms 1712 KB
#include<stdio.h>

const int T=19980305;
long long int ans;
int ls[100010],l;

bool check(int x)
{
	while(x){
		if(x%10!=3&&x%10!=5&&x%10!=8)return false;
		x/=10;
	}
	return true;
}

int main()
{
	int x,y;
	scanf("%d%d",&x,&y);
	int i;
	for(i=x;i<=y;i++){
		if(check(i)){ls[l]=i;l++;}
	}
	for(i=1;i<l;i++){
		ans+=ls[i]*ls[i-1];
		ans%=T;
	}printf("%d",ans);
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 354 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 1712 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 1712 KB Output isn't correct
2 Halted 0 ms 0 KB -