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
相關文章
相關標籤/搜索