随笔分类 - acm
日常刷题,题目分享
摘要:题目描述 おんなのこ gives you a permutation PER and a positive integer K.(PER is a permutation of (1,2,3,.....,N)). For each i = K,K+1,......,N,find the K-th g
阅读全文
摘要:A - Happy New Year! 官方题解: Let’s enumerate the integers that satisfy the condition. 2 20 22 200 202 220 222 2000 2002 2020 2022 ... (其实就是把十进制换成二进制.....
阅读全文
摘要:A,输出一串数字序列 Description 输入一行数字n 在下一行输出 n 个数字,这 n 个数字为 n 到 1 的 n 个数字 Input 输入一个整型n(1<=n<=100) Output 输出占一行 代码: #include <cstdio> int main() { int n; sca
阅读全文
摘要:题目链接 A. Transformation: from A to B time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Vasil
阅读全文
摘要:题目链接:https://ac.nowcoder.com/acm/contest/11211/E 输入描述: 读入n阶的矩阵,对于矩阵有如下两种操作 1顺时针旋180°2关于行镜像 给出q个操作,输出操作完的矩阵 第一行一个数n(1≤n≤1000),表示矩阵大小接下来n行,每行n个数,描述矩阵,其中
阅读全文
摘要:题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1016 Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
阅读全文

浙公网安备 33010602011771号