A - Rightmost Digit

  思路: 运用快速幂。   代码: #include <iostream> #include <stdio.h> using namespace std; typedef long long LL; void quick_pow(int x) { int ans = 1, y = x; x = x % 10; while (y) { if (y
相关文章
相关标签/搜索