Submission #00045


ソースコード

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
/// {{{
#include "bits/stdc++.h"
#define ALL(x) x.begin(), x.end()
#define iostreamBooster() do{cin.tie(nullptr);ios::sync_with_stdio(false);}while(0)
#define rep(i, s, t) for(int i = int(s); i < int(t); ++i)
using namespace std;
typedef long long i64;
typedef pair<int,int> pii;
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
constexpr int INF = 0x3f3f3f3f;
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
// }}}
signed main()
{
iostreamBooster();
i64 a, N;
cin >> a >> N;
auto f = [&](i64 x) { return 2 * a * x; };
rep(i, 0, N) {
i64 x; cin >> x;
cout << f(x) << '\n';
}
return 0;
}

ステータス

項目 データ
問題 0009 - 非同盟主義
ユーザー名 Arumakan_ei1727
投稿日時 2019-05-27 17:09:02
言語 C++14
状態 Accepted
得点 1
ソースコード長 778 Byte
最大実行時間 180 ms
最大メモリ使用量 26924 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01 AC 18 ms 604 KB
1
in02 AC 22 ms 432 KB
1
in03 AC 20 ms 516 KB
1
in04 AC 26 ms 472 KB
1
in05 AC 22 ms 428 KB
1
in06 AC 23 ms 632 KB
1
in07 AC 19 ms 580 KB
1
in08 AC 180 ms 12172 KB
1
in09 AC 33 ms 13400 KB
1
in10 AC 39 ms 14880 KB
1
in11 AC 22 ms 14956 KB
1
in12 AC 22 ms 15160 KB
1
in13 AC 151 ms 26752 KB
1
in14 AC 23 ms 26832 KB
1
in15 AC 18 ms 26660 KB
1
in16 AC 23 ms 26740 KB
1
in17 AC 17 ms 26820 KB
1
in18 AC 21 ms 26900 KB
1
in19 AC 22 ms 26844 KB
1
in20 AC 20 ms 26924 KB
1