Repeating Cipher
https://codeforces.com/contest/1095/problem/A
题解:
加密方式就是第i个字母重复i次
/*
*@Author: STZG
*@Language: C++
*/
#include <bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<cstdlib>
#include<cstring>
#include<cstdio>
#include<string>
#include<vector>
#include<bitset>
#include<queue>
#include<deque>
#include<stack>
#include<cmath>
#include<list>
#include<map>
#include<set>
//#define DEBUG
#define RI register int
using namespace std;
typedef long long ll;
//typedef __int128 lll;
const int N=10000;
const int MOD=1e9+7;
const double PI = acos(-1.0);
const double EXP = 1E-8;
const int INF = 0x3f3f3f3f;
int t,n,m,k,q;
char str[100];
int main()
{
#ifdef DEBUGfreopen("input.in", "r", stdin);//freopen("output.out", "w", stdout);
#endifscanf("%d",&n);scanf("%s",str);t=0;for(int i=1;t<n;i++){printf("%c",str[t]);t+=i;}//cout << "Hello world!" << endl;return 0;
}
Repeating Cipher相关推荐
- 密码学电子书_密码学中的电子密码书(ECB)
密码学电子书 This Electronic Code Book (ECB) is cryptography as a mode of operation for a block cipher, wi ...
- Codeforces Round #529 (Div. 3) 题解
刷了一套题散散心,Div 3,全部是 1 A,感觉比以前慢了好多好多啊. 这几天也整理了一下自己要做的事情,工作上要努力... ... 晚上还是要认认真真背英语的. 找了几个同学问了一下,有点想自己做 ...
- LeetCode.3-最长无重复字符子串(Longest Substring Without Repeating Characters)
这是悦乐书的第341次更新,第365篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Medium级别的第2题Longest Substring Without Repeating Cha ...
- E - Right-Left Cipher CodeForces - 1087A (模拟)
E - Right-Left Cipher CodeForces - 1087A 题解 一左一右输出 自己的 low 代码 #include<bits/stdc++.h> using na ...
- 3.longest substring without repeating characters
Given a string, find the length of the longest substring without repeating characters. Example 1: In ...
- LeetCode 3. Longest Substring Without Repeating Characters-- c++,java,python解法
题目地址: Given a string, find the length of the longest substring without repeating characters. Example ...
- [LeetCode]3.Longest Substring Without Repeating Characters
[题目] Given a string, find the length of the longest substring without repeating characters. For exam ...
- LeetCode---------Longest Substring Without Repeating Characters解法
题目如下: Given a string, find the length of the longest substring without repeating characters. Example ...
- phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法
phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法 参考文章: (1)php ...
最新文章
- 清华大学矣晓沅:“九歌”——基于深度学习的中国古典诗歌自动生成系统
- PHP获取IP地址以及IP地址所在位置
- xen虚拟化实战系列(六)之xen虚拟机破解密码
- java基础提升篇:深入分析Java的序列化与反序列化
- java运行原理_Java程序的加载与运行原理详解
- 在.NET 2.0正式版中开发无刷新页面
- PAT_B_1039_Java(20分)
- python-练习-查找匹配-模拟数据库的查找-小例子
- CTA策略05_AtrRsiStrategy
- php定时任务引入文件,php解决crontab定时任务不能写入文件问题的方法分析
- Java 实现线程的两种方式
- 在centos 7.0上利用yum一键安装mono
- 数据库中间件01-认识mycat
- 沈大海38节jquery强化教程2016视频下载
- OpenCV入门知识[转载]
- 基于汇川AM402编写跑马灯程序
- Windows 禁用U盘
- latex中极限号下边怎么打_latex 极限下标
- 【报错】Verion 9 of Highlight.js has reached EOL
- unity小地图制作和方向导航
热门文章
- android动画延迟执行,Android 过渡动画框架
- app把信息添加到mysql_如何将数据库表中的数据添加到ListView C#Xamarin Android App
- org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
- jdbc mysql 换行符_mysql JDBC URL格式各个参数详解
- 运用计算机辅助电话调查的方法,第二章 统计数据的搜集、整理与显示
- 解决 pandas 读取数据时内存过大的问题
- pytorch 入门Tensor(一)
- excel中的vlookup函数
- java string问题_Java关于String的问题?
- 预训练语言模型论文分类整理:综述、基准数据集、PLM的设计和分析