NYOJ45棋盘覆盖
来源:互联网 发布:linux 安装tomcat8 编辑:程序博客网 时间:2024/05/29 04:48
原题链接
import java.util.*;import java.math.*;public class Main {public static void main(String[] args) {Scanner sc=new Scanner(System.in);int t=sc.nextInt();while(t-->0) {int k=sc.nextInt();BigInteger a=new BigInteger("4");for(int i=1;i<k;i++)a=a.multiply(BigInteger.valueOf(4));a=a.subtract(BigInteger.valueOf(1));System.out.println(a.divide(BigInteger.valueOf(3)));}}}
1044249hpu_yw棋盘覆盖Accepted51307java11-05 17:08:52
0 0
- NYOJ45 棋盘覆盖
- NYOJ45棋盘覆盖
- NYOJ45棋盘覆盖
- nyoj45 棋盘覆盖
- nyoj45 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- java Swing 在table中添加复选框
- quick的文档API笔记
- CentOS7安装wxWidgets错误解决
- git cherry-pick 的使用
- android 在短信发送界面, 短信发送失败时,提示音不完整,会被中断
- NYOJ45棋盘覆盖
- 无法打开源文件QtWidgets/QApplication 解决方法
- javascript Date formate 日期格式
- Symmetric Tree(leetcode)
- 20.PHP内核探索:PHP中的哈希表
- Combination Sum
- 查询字段在数据库哪个表里面
- EditText 横条显示
- LeetCode Triangle