#include <stdio.h> int main(){ long long int n; scanf("%lld",&n); long long int sum[n+2]; sum[0]=7; sum[1]=11; int i; for(i=1;i<=n;i++) { sum[i+1]=sum[i]+sum[i-1]; if(sum[i-1]%3==0) { printf(“yes”); } else { printf(“no”); } printf(" "); } return 0; }
#include <stdio.h>int main(){long long int n;scanf("%lld",&n);long long int sum[n+2];sum[0]=7;sum[1]=11;int i;for(i=1;i<=n;i++){sum[i+1]=sum[i]+sum[i-1];if(sum[i-1]%3==0){printf(“yes”);}else{printf(“no”);}printf(" ");}retu