标签:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5703
1 3
100Hint3 liters of water can be comsumed in four different ways show in the following. 1. 1 1 1 2. 1 2 3. 2 1 4. 3 If we write 4 in binary, it‘s 100.
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int t; scanf("%d",&t); while (t--) { int n; scanf("%d",&n); printf ("1"); for (int i=0;i<n-1;i++) printf ("0"); printf ("\n"); } return 0; }
标签:
原文地址:http://blog.csdn.net/qiqi_skystar/article/details/51789681