QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#820436#4595. Quel'ThalasSGColinAC ✓0ms3740kbC++20536b2024-12-18 21:26:372024-12-18 21:26:41

Judging History

你现在查看的是最新测评结果

  • [2024-12-18 21:26:41]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3740kb
  • [2024-12-18 21:26:37]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
using ll = long long;

#define fr first
#define sc second
#define mp make_pair
#define pb push_back
#define pii pair<int, int>

inline int rd() {
    int x = 0;
    bool f = 0;
    char c = getchar();
    for (; !isdigit(c); c = getchar()) f |= (c == '-');
    for (; isdigit(c); c = getchar()) x = x * 10 + (c ^ 48);
    return f ? -x : x;
}

inline void work() {
    printf("%d\n", rd() * 2);
}

int main() {
    for (int t = rd(); t; --t) work();
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3740kb

input:

50
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
50

output:

2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100

result:

ok 50 lines