Submission #00116


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<bits/stdc++.h>
using namespace std;
using vecint = vector<int>;
using vec2int = vector<vector<int>>;
using vecstr = vector<string>;
using vecll = vector<long long>;
using vec2ll = vector<vector<long long>>;
#define ll long long
#define ull unsigned long long
#define rin(a) for(auto& b : a) cin >> b
#define so(a) stable_sort(a.begin(),a.end())
#define sor(a) stable_sort(a.begin(),a.end(),greater<int>())
#define show(a) for(auto& b : a) cout << b ; cout << endl
#define NOFIND string::npos
#define INF 1e18
main(){
int n, m;
cin >>n >>m;
cout << (n+m)/2<<endl;
return(0);
}

ステータス

項目 データ
問題 0001 - お年玉
ユーザー名 ei2222
投稿日時 2023-07-31 11:09:04
言語 C++17
状態 Accepted
得点 3
ソースコード長 622 Byte
最大実行時間 26 ms
最大メモリ使用量 692 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 23 ms 476 KB
1
in2.txt AC 20 ms 592 KB
1
in3.txt AC 19 ms 692 KB
1
in4.txt AC 21 ms 532 KB
1
in5.txt AC 19 ms 504 KB
1
in6.txt AC 21 ms 608 KB
1
in7.txt AC 21 ms 452 KB
1
in8.txt AC 19 ms 548 KB
1
in9.txt AC 22 ms 524 KB
1
in10.txt AC 26 ms 576 KB
1
in11.txt AC 19 ms 548 KB
1
in12.txt AC 17 ms 516 KB
1
in13.txt AC 18 ms 620 KB
1