本文主要是介绍XTU 1245 Lisa’s Puzzle,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Lisa’s Puzzle | ||
[ Submit Code ] [ Top 20 Runs ] | ||
Acceteped : 18 | Submit : 145 | |
Time Limit : 1000 MS | Memory Limit : 65536 KB | |
Description | ||
Lisa’s Puzzle题目描述5的二进制是101,13的二进制是1101,所以在二进制上,5是13的后缀。Lisa获得了一个长长的正整数列表,她想知道在列表中每一个数是列表中多少个其他数的后缀? 输入第一行是一个整数 N,1≤N≤100000 ,表示整数的个数。 以后N行,每行一个正整数,每个都可以使用一个32位int表示,而且所有的数都是唯一的。 输出每个整数对应的结果输出一行, 样例输入5 5 13 1 2 3 样例输出1 0 3 0 0 相关文章XTU 1236 Fibonacci
Fibonacci[ Submit Code ] [ Top 20 Runs ]Acceteped : 40 Submit : 51 Time Limit : 1000 MS Memory Limit : 65536 KB Description 题目描述 Fibonacci数是非常有名的一个数列 f(n)f(n-1)f(n-2),f(0)1,f(1)2。 我们可以把任意一个数X表示成若干不相同的fibonacci数的和&…
XTU 程序设计实践模拟考试题1
题目链接:点击此处打开链接 题号分别是:1248/1249/1250/1251/1252/1253。 1248思路:枚举出所有可能,判结果即可。详见代码。 AC代码如下:
#include <bits/stdc.h>
using namespace std;
int a[3], b[3];int …
HDU 5695 Gym Class
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid5695 Gym Class Time Limit: 6000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 879 Accepted Submission(s): 357 Problem Description 众所周知,…
HDU 2222 Keywords Search
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid2222 Keywords Search
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 51270 Accepted Submission(s): 16514 Problem Description In t…
HDU 1263 水果
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid1263 水果 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5708 Accepted Submission(s): 2257 Problem Description 夏天来了~~好开心啊,呵呵…
HDU 4858 项目管理
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid4858 项目管理 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2229 Accepted Submission(s): 834 Problem Description 我们建造了一个大项目…
CodeForces 556A Case of the Zeros and Ones
题目链接:http://codeforces.com/problemset/problem/556/A Case of the Zeros and Ones time limit per test :1 second memory limit per test :256 megabytes input :standard input output :standard output Andre…
POJ 1962 Corporative Network
题目链接:http://poj.org/problem?id1962 Corporative Network Time Limit: 3000MS Memory Limit: 30000KTotal Submissions: 3725 Accepted: 1347 Description A very big corporation is developing its corporative network. In the beginning each of the N e…
CodeForces 699B One Bomb
题目链接:http://codeforces.com/problemset/problem/699/B One Bomb time limit per test :1 second memory limit per test :256 megabytes input :standard input output :standard output You are given a descri…
CodeForces 339D Xenia and Bit Operations
题目链接:http://codeforces.com/problemset/problem/339/D Xenia and Bit Operations time limit per test :2 seconds memory limit per test :256 megabytes input :standard input output :standard output Xenia…
最新文章
|
这篇关于XTU 1245 Lisa’s Puzzle的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!