`
ssun125
  • 浏览: 44658 次
文章分类
社区版块
存档分类
最新评论

Uva 490 Rotating Sentences

 
阅读更多
#include<stdio.h>
#include<string.h>

int main()
{
	char ch[110][110];
	int i=0,j,k;
	int max;
	while(gets(ch[i])!=NULL)
	{
		if(i==0)
			max = strlen(ch[i]);
		else if(max<strlen(ch[i]))
			max = strlen(ch[i]);
		i++;
	}
	for(j=0;j<max; j++)
	{
		for(k=i-1; k>=0;k--)
		{
			if(j<strlen(ch[k]))
				printf("%c",ch[k][j]);
			else  if(k!=0)
				printf(" ");
		}
		printf("\n");
	}
	return 0;
}


分享到:
评论

相关推荐

    Design of Rotating Electrical Machines(Second Edition)

    &lt;Design of Rotating Electrical Machines&gt;一书第二版,2014版,Pyrhonen, J., Jokinen, T., Jokinen, T., 2014. Design of Rotating Electrical Machines. John Wiley & Sons.

    选项卡效果Rotating UI Tabs

    【标题】"选项卡效果Rotating UI Tabs"是一种常见的用户界面设计模式,它允许用户在有限的空间内切换多个视图或内容区域。这种效果通常用于网页、桌面应用和移动应用中,以提供清晰且高效的导航体验。Rotating UI ...

    Design of Rotating Electrical Machines

    ### 旋转电机设计 #### 知识点一:旋转电机设计概述 《旋转电机设计》是一本详尽探讨旋转电机设计原理与实践的专业书籍。旋转电机是电气工程领域中的核心设备之一,广泛应用于电力系统、工业自动化、交通运输等多...

    旋转机械诊断技术 Fundamentals of Rotating Machinery Diagnostics.rar

    对旋转机械的故障诊断资料都是国外的文献,相关中文资料比较少,因此对学习相关故障诊断技术的门槛增加,这本书是比较靠谱的书籍之一,旋转机械诊断技术_Fundamentals of Rotating Machinery Diagnostics,高清中文...

    rotating data for neural network computations

    google rotating data for neural network computations

    Rotating Anode X-ray Tube Assembly E7240X

    E7240X E7240FX Rotating Anode X-ray Tube Assembly

    scrapy-rotating-proxies:与Scrapy一起使用多个代理

    安装pip install scrapy-rotating-proxies用法将带有代理列表的ROTATING_PROXY_LIST选项添加到settings.py: ROTATING_PROXY_LIST = [ 'proxy1.com:8000', 'proxy2.com:8031', # ...]或者,您可以指定一个ROTATING_...

    single_rotating_fluent19tutorial_FLUENT19_Tutorial_Guide_19.2_en

    总之,《ANSYS Fluent 19.2 Tutorial Guide》通过"single_rotating_disk"案例,详细讲解了如何利用Fluent进行流体流动模拟,涵盖了网格划分、边界条件设置、物理模型选择、求解过程和结果分析等多个方面,是深入理解...

    IOS应用源码——Rotating Wheel Control for iOS.rar

    在iOS开发中,Rotating Wheel Control是一种常见的UI组件,它为用户提供了一种旋转选择器的交互方式,类似于苹果设备上的日期选择器或者时钟选择器。这个源码包"IOS应用源码——Rotating Wheel Control for iOS.rar...

    rotating cylinder_rotatingcylinder_

    标题“rotating cylinder_rotatingcylinder_”暗示了我们正在探讨与旋转圆柱体相关的MATLAB编程主题。MATLAB是一种广泛使用的数值计算和数据分析软件,它允许用户进行复杂的数学建模和模拟。在这个特定的场景中,...

    rotating_cube-master.zip

    在网页设计与开发中,动态效果往往能为用户体验增色不少,而“rotating_cube-master.zip”则是一个专为展示3D立方体旋转效果的项目。这个项目的核心是利用JavaScript、HTML和jQuery这三种技术,为网页创造出一种视觉...

    rotating-file-stream:打开一个流,可写入按间隔和_或大小旋转的文件。 logrotate替代

    const rfs = require ( "rotating-file-stream" ) ; const stream = rfs . createStream ( "file.log" , { size : "10M" , // rotate every 10 MegaBytes written interval : "1d" , // rotate daily compress : ...

    rotating_phasor.m_rotatephasor_

    在MATLAB环境中,`rotating_phasor.m`是一个用于执行相位旋转操作的脚本或函数。这个功能在信号处理领域中具有重要的应用,特别是在分析、合成和处理复数信号时。相位旋转是将一个复数信号的相位按照特定的角度进行...

    rotating_lightrotating_lightrotating_light_C

    rotating_lightrotating_lightrotating_light_C_CornerNet-Lite-Pytorch

    Rotating link_EzCad2_

    标题中的"Rotating link_EzCad2_"暗示了我们讨论的主题是关于EzCad2软件在设计和模拟旋转链接机制,特别是针对光纤激光器机械装置的应用。EzCad2是一款强大的CAD(计算机辅助设计)软件,它专为自动化设计和运动控制...

    Modeling Rotating Machinery with Fluent.pdf

    "Modeling Rotating Machinery with Fluent" 这个主题着重于如何利用Ansys Fluent软件来模拟和分析旋转机械的工作过程。Fluent是一款强大的计算流体动力学(CFD)工具,广泛用于解决复杂的流体流动问题。 首先,让...

    View-rotating.zip_源码

    【标题】"View-rotating.zip_源码" 指的是一个使用C#编程语言在Visual Studio 2013环境下开发的项目,主要功能是实现图片的查看,包括上一张、下一张的切换操作。这个源码可能是为了帮助开发者理解和学习如何在...

    FengChe.zip_PURE_production_rotating_www.fengche.cna

    A pure CSS3 production of rotating animation windmill web page special effect download, the CSS3 special effect code is a pure CSS3 implementation of windmill effect

    API RP 687-2023 - Special-purpose Rotating Equipment Repairs.pdf

    API RP 687-2023 - Special-purpose Rotating Equipment Repairs.pdf

Global site tag (gtag.js) - Google Analytics