zoj 2965 Accurately Say "CocaCola"! 2969 Easy Task(水~~)

原创 2012年03月29日 20:16:13
#include<stdio.h>//zoj 2965 zisu123
void cococla(int p)
{
	if(p==1) printf("7\n");
	else if(p==2) printf("27\n");
	else if(p<=10) printf("70\n");
	else if(p==11) printf("270\n");
	else printf("700\n");
}
int main()
{
	int T,p;
	scanf("%d",&T);
	while(T--)
	{
		scanf("%d",&p);
		cococla(p);
	}
	return 0;
}


 

#include<stdio.h>//2969,zisu123
int main()
{
	int T;
	int c[1005];
	int i,j;
	scanf("%d",&T);
	while(T--)
	{
		int N;
		scanf("%d",&N);
		for(i=0;i<=N;i++)
			scanf("%d",&c[i]);
		for(j=N,i=0;i<N-1;i++,j--)
		{
			printf("%d ",j*c[i]);
		}
		printf("%d\n",c[N-1]);
	}
	return 0;
}


 

ZOJ-2965-Accurately Say "CocaCola"!【5th浙江省赛】

ZOJ-2965-Accurately Say “CocaCola”!

ZOJ 2965 Accurately Say "CocaCola"!

简单的打表找规律。 原题链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2965 题目来源:http://acm.h...

ZOJ 2965 Accurately Say &quot;CocaCola&quot;!

In a party held by CocaCola company, several students stand in a circle and play a game. One of the...

ZOJ-2969-Easy Task【5th浙江省赛】

ZOJ-2969-Easy Task

ZOJ 2969 Easy Task

题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2969 ZOJ Problem Set - 2969 ...

Accurately Say &quot;CocaCola&quot;!(规律题)

A - Accurately Say "CocaCola"! Time Limit:2000MS     Memory Limit:65536KB     64bit IO Fo...

ZJU oj 2969 Easy Task(水题)

Easy Task Time Limit: 2 Seconds Memory Limit: 65536 KB Calculating the derivation of a poly...
  • Sara_YF
  • Sara_YF
  • 2016年04月16日 13:04
  • 227

zoj 3406 Another Very Easy Task

#include #include #include #include #include using namespace std; int main() { char a[10010]; ...

[ACM] ZOJ 3844 Easy Task (模拟+哈希)

Easy Task Time Limit: 2 Seconds      Memory Limit: 65536 KB You are given n integers. Your t...

A. Appleman and Easy Task 8-26

我gang Given a n × n checkerboard. Each cell of the board has either character 'x', or character '...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:zoj 2965 Accurately Say "CocaCola"! 2969 Easy Task(水~~)
举报原因:
原因补充:

(最多只允许输入30个字)