当前位置:网站首页>Pta:7-37 student number analysis
Pta:7-37 student number analysis
2022-06-23 04:37:00 【Sy_ Faker】
Some bits of the student number of Sichuan teachers have special meanings , If you follow 2016110101 It can be seen that the student is 2016 level , Study in 11 system , Class for 1 class . According to the input student number , Use the program to analyze , Output the corresponding information .
Input format :
A student number
Output format :
Related information
sample input :
Here's a set of inputs . for example :
2016110101
sample output :
Here is the corresponding output . for example :
year:2016
department:11
class:01
Hahaha, I feel like I stole chicken
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
string str;
getline(cin,str);
cout<<"year:";
for(int i=0;i<4;i++)
cout<<str[i];
cout<<endl<<"department:";
for(int i=4;i<6;i++)
cout<<str[i];
cout<<endl<<"class:";
for(int i=6;i<8;i++)
cout<<str[i];
return 0;
}
边栏推荐
- [deep learning] deep learning reasoning framework tensorrt MNN openvino onnxruntime
- What is the open source database under Linux
- How node+express operates cookies
- Prince language on insect date class
- Latest programming language rankings
- How to ensure application security
- [pycharm] ide Eval resetter
- Introduction to deep learning
- [advanced binary tree] AVLTree - balanced binary search tree
- PTA:7-87 集合的模拟实现(类模板)
猜你喜欢

What are the characteristics of SRM supplier management system developed by manufacturing enterprises

Implementation of VGA protocol based on FPGA

语料库数据处理个案实例(分词和分句、词频统计、排序)

Online JSON to CSharp (c) class tool

国家药品不良反应监测中心 ADR 电子传输EDI解决方案
![[multimode] unimo](/img/a5/a857e20e1432ef3623527c8655a49a.png)
[multimode] unimo

Monitoring artifact ZABBIX, from deployment to application, goes deep layer by layer

x64dbg 基本使用技巧

Photoshop PS viewing pixel coordinates, pixel colors, pixel HSB colors

Getting started with tensorflow
随机推荐
JVM调优简要思想及简单案例-为什么需要JVM调优?
There is a problem with redis startup
X24cxx series EEPROM chip C language universal reading and writing program
Code refactoring Guide
How to make the page number start from the specified page in word
PTA:6-33 学生排名表(析构函数)
虫子 日期类 下 太子语言
[binary tree] flip equivalent binary tree
Getting started with tensorflow
What is metadata
PTA:7-60 宠物的生长
Pytorch---Pytorch进行自定义Dataset
Leetcode 1208. Make strings as equal as possible
Photoshop PS viewing pixel coordinates, pixel colors, pixel HSB colors
Ms-fsrvp forced abuse of POC
PTA:7-87 集合的模拟实现(类模板)
12 excellent practices of wireless network security
一篇文章学会er图绘制
LabVIEW displays both hexadecimal and normal characters in the same table
photoshop PS 查看像素坐标、像素颜色、像素HSB颜色