Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a program that prints zero-complexity transpositi... 查看原文 codility: upsilon2012 (Cartesian Sequence) can be a
#include <iostream> #include <stack> using namespace std; /* 序列中ai的整数非常大,远超int的最大值2的31次方减一,所以不能再用32位整型int 来表示,而要用 64 位整型 long long 来表示,long long 的最大值为2的63次方减1,能够满足题目的要求 */ int main() { int n; stack <long long> s;...
题解| Zero-complexity Transposition Zero-complexity Transposition https://www.nowcoder.com/practice/c54775799f634c72b447ef31eb36e975n = input() s = input().split() a = ' '.join(s[::-1]) print(a) 全部评论 推荐 最新 楼层相关推荐...
You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a pr
题目1039:Zero-complexity Transposition---AC AC: #include<iostream> using namespace std; long long a[10000]; int main() { int n; while(cin>>n) { int i=0,k=0; for (i=0;i<n;i++) cin>>a[k++]; for(i=k-1;i>0;i--) cout<<a[i]<<" "; cout<<a[0]<<endl; } return...
You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a program that prints zero-complexity transposition of the given sequence. 输入: For each case, the first line of the input file contains one inte...
Zero-complexity Transposition https://www.nowcoder.com/practice/c54775799f634c72b447ef31eb36e975 n = input() s = input().split() a = ' '.join(s[::-1]) print(a) 全部评论 推荐最新楼层 06-04 16:50 腾讯_TEG_技术 join 下
1039.zero-complexity transposition 2018-10-02 10:42 −... bernieloveslife 0 393 1039 Course List for Student (25分) 2019-12-10 18:04 −Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the...
You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a program that prints zero-complexity transposition of the given sequence. 输入: For each case, the first line of the input file contains one inte...
You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a program that prints zero-complexity transposition of the given sequence. 输入: For each case, the first line of the input file contains one inte...