exceed

Time limit exceeded error. what does it mean?

ⅰ亾dé卋堺 提交于 2019-12-13 11:18:47
问题 I want to write a C program that prints the maximum of 10 integer numbers. but i get this error. what is the problem?(error is: time limit exceeded) int main() { int arr[9]; int i; int max=-1; for(i=0;i<=10;i++) { scanf("%d",&arr[i]); if(arr[i]>arr[i+1]){ arr[i]=max; } } printf("%d",max); } program works like that,thank u for help int main() { int arr[9]; int i; int max=-1; for(i=0;i<=9;i++) { scanf("%d",&arr[i]); if(arr[i]>max) { max=arr[i]; } } printf("%d",max); } 回答1: you are indexing two

Akka Payload Size Exceeded

て烟熏妆下的殇ゞ 提交于 2019-12-08 13:50:43
问题 I am trying to find handle the akka Payloadsizeexceeded exception. But since there is no way to handle it, I would like to know the size of the message that is being passed. For this I would like to calculate the size of message and this size needs to give the exact size of the clustermessage being passed not just the json size inside my request. Is there a way to know this size? For example my json size is 31998bytes but when the message is being passed between the actors some amount of