随笔分类 -  基础题

摘要:题目范围是0using namespace std;int main(){ int a,b; int s[10][4]={{0,0,0,0},{1,1,1,1},{6,2,4,8},{1,3,9,7},{6,4,6,4},{5,5,5,5},{6,6,6,6},{1,7,9,3},{6,8,4,2},{1,9,1,9}}; while(cin>>a>>b) { cout<<s[a%10][b%4]<<endl; }} 阅读全文
posted @ 2013-12-11 10:08 forkbomb 阅读(83) 评论(0) 推荐(0)