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相关推荐

  1. 密码学电子书_密码学中的电子密码书(ECB)

    密码学电子书 This Electronic Code Book (ECB) is cryptography as a mode of operation for a block cipher, wi ...

  2. Codeforces Round #529 (Div. 3) 题解

    刷了一套题散散心,Div 3,全部是 1 A,感觉比以前慢了好多好多啊. 这几天也整理了一下自己要做的事情,工作上要努力... ... 晚上还是要认认真真背英语的. 找了几个同学问了一下,有点想自己做 ...

  3. LeetCode.3-最长无重复字符子串(Longest Substring Without Repeating Characters)

    这是悦乐书的第341次更新,第365篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Medium级别的第2题Longest Substring Without Repeating Cha ...

  4. E - Right-Left Cipher CodeForces - 1087A (模拟)

    E - Right-Left Cipher CodeForces - 1087A 题解 一左一右输出 自己的 low 代码 #include<bits/stdc++.h> using na ...

  5. 3.longest substring without repeating characters

    Given a string, find the length of the longest substring without repeating characters. Example 1: In ...

  6. LeetCode 3. Longest Substring Without Repeating Characters-- c++,java,python解法

    题目地址: Given a string, find the length of the longest substring without repeating characters. Example ...

  7. [LeetCode]3.Longest Substring Without Repeating Characters

    [题目] Given a string, find the length of the longest substring without repeating characters. For exam ...

  8. LeetCode---------Longest Substring Without Repeating Characters解法

    题目如下: Given a string, find the length of the longest substring without repeating characters. Example ...

  9. 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 ...

最新文章

  1. 清华大学矣晓沅:“九歌”——基于深度学习的中国古典诗歌自动生成系统
  2. PHP获取IP地址以及IP地址所在位置
  3. xen虚拟化实战系列(六)之xen虚拟机破解密码
  4. java基础提升篇:深入分析Java的序列化与反序列化
  5. java运行原理_Java程序的加载与运行原理详解
  6. 在.NET 2.0正式版中开发无刷新页面
  7. PAT_B_1039_Java(20分)
  8. python-练习-查找匹配-模拟数据库的查找-小例子
  9. CTA策略05_AtrRsiStrategy
  10. php定时任务引入文件,php解决crontab定时任务不能写入文件问题的方法分析
  11. Java 实现线程的两种方式
  12. 在centos 7.0上利用yum一键安装mono
  13. 数据库中间件01-认识mycat
  14. 沈大海38节jquery强化教程2016视频下载
  15. OpenCV入门知识[转载]
  16. 基于汇川AM402编写跑马灯程序
  17. Windows 禁用U盘
  18. latex中极限号下边怎么打_latex 极限下标
  19. 【报错】Verion 9 of Highlight.js has reached EOL
  20. unity小地图制作和方向导航

热门文章

  1. android动画延迟执行,Android 过渡动画框架
  2. app把信息添加到mysql_如何将数据库表中的数据添加到ListView C#Xamarin Android App
  3. org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
  4. jdbc mysql 换行符_mysql JDBC URL格式各个参数详解
  5. 运用计算机辅助电话调查的方法,第二章 统计数据的搜集、整理与显示
  6. 解决 pandas 读取数据时内存过大的问题
  7. pytorch 入门Tensor(一)
  8. excel中的vlookup函数
  9. java string问题_Java关于String的问题?
  10. 预训练语言模型论文分类整理:综述、基准数据集、PLM的设计和分析