当前位置:网站首页>%s格式符
%s格式符
2022-07-04 13:32:00 【Zaltana】
输入字符串,然后输出前3个字符,要求占6列,右对齐。
格式
输入格式:输入字符串
输出格式:输出字符串
样例
输入:Wendy
输出: Wen
#include<bits/stdc++.h>
using namespace std;
int main( )
{
char s[100];
gets(s);
printf("%6.3s",s);
return 0;
}边栏推荐
- Helix swarm Chinese package is released, and perforce further improves the user experience in China
- 【C语言】指针笔试题
- LVGL 8.2 Menu
- Luo Gu - some interesting questions
- LVGL 8.2 text shadow
- C language achievement management system for middle school students
- Graduation season - personal summary
- 毕业季-个人总结
- LVGL 8.2 Line wrap, recoloring and scrolling
- Kubernets pod exists finalizers are always in terminating state
猜你喜欢

Combined with case: the usage of the lowest API (processfunction) in Flink framework

Luo Gu - some interesting questions 2

Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态

Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering

【C语言】指针笔试题

Expose Ali's salary and position level
![leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]](/img/48/56ed03b21709a97fd55c8cccf98092.png)
leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]

Summary of common problems in development

Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance

MP3是如何诞生的?
随机推荐
毕业季-个人总结
92. (cesium chapter) cesium building layering
Detailed explanation of visual studio debugging methods
Preliminary exploration of flask: WSGI
Flutter reports an error no mediaquery widget ancestor found
Programmer turns direction
各大主流编程语言性能PK,结果出乎意料
When synchronized encounters this thing, there is a big hole, pay attention!
PLC模拟量输入 模拟量转换FC S_ITR (CODESYS平台)
深度学习7 Transformer系列实例分割Mask2Former
No servers available for service: xxxx
LVGL 8.2 Line wrap, recoloring and scrolling
Deep learning 7 transformer series instance segmentation mask2former
Ultrasonic distance meter based on 51 single chip microcomputer
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
Memory management summary
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Explain of SQL optimization
(1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist