Submission #78722


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#if !__INCLUDE_LEVEL__
#include __FILE__
main(){
start();
int n;
cin >>n;
vec a(n,0LL);
for(auto &i:a)cin >>i;
rloop(i,n-1,0){
cout <<a[i]<<endl;
}
}
#else
#include<bits/stdc++.h>
#define endl "\n"
#define INF LONG_LONG_MAX
#define rpqueue(i) priority_queue<i>
#define pqueue(i) priority_queue<i,vector<i>,greater<i>>
#define yn(i) if(i)cout<<"Yes\n";else cout<<"No\n"
#define chmax(a,b) a=max(a,b)
#define chmin(a,b) a=min(a,b)
#define all(i) i.begin(),i.end()
#define loop(i,s,e) for(int i = s;i < e;i++)
#define rloop(i,s,e) for(int i = s;i >= e;i--)
#define int long long
#define vec vector
using namespace std;
void start(){
cin.tie(nullptr);ios::sync_with_stdio(false);
cout << std::fixed << std::setprecision(10);
}
long long modinv(long long a,long long m){
long long b = m,u = 1,v = 0;
while(b){
long long t = a / b;
a -= t * b;swap(a,b);
u -= t * v;swap(u,v);
}
u %= m;
if(u < 0)u += m;
return u;
}
bool isPrime(long long x) {
for (int i = 2; i * i <= x; i++) {
if (x % i == 0) return false;
}
return true;
}
#endif

ステータス

項目 データ
問題 1769 - いたみ読らか逆
ユーザー名 ei2332
投稿日時 2024-05-01 16:22:51
言語 C++17
状態 Accepted
得点 1
ソースコード長 1299 Byte
最大実行時間 26 ms
最大メモリ使用量 620 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 19 ms 476 KB
1
in2.txt AC 23 ms 552 KB
1
in3.txt AC 16 ms 620 KB
1
in4.txt AC 25 ms 568 KB
1
in5.txt AC 26 ms 516 KB
1
in6.txt AC 23 ms 588 KB
1
in7.txt AC 22 ms 544 KB
1