#include#include #include using namespace std; int main() { int n; cin >> n; int v[]={1,3,9,27,81,43,29,87,61,83,49,47,41,23,69,7,21,63,89,67}; for(int i =0;i > num; int c = 0; int indice = 0; for (int j = num.size ()-1; j >= 0;j--) { c = c + v[indice]*((int)num[j]-48); indice ++; if(indice==19) indice =0; } if ( c % 4 ==0) cout << "YES"<< endl; else cout <<"NO" << endl; } }
No hay comentarios:
Publicar un comentario