Submission #73322
ソースコード
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> using namespace std; #define lol long long #define INF INT_MAX #define P pair<int,int> #define Pci pair<char,int> #define Pll pair<lol,lol> #define fi first #define se second #define mp(f,s) make_pair(f,s) // const int mod = (1e9) + 7; const int mod = 998244353; int dx[] = {1,0,-1,0}; int dy[] = {0,1,0,-1}; // seg[i]になった時にかかるコスト int seg[] = {1,0,4,1,1,2,1,1,3,0}; int main(){ int a,b; cin>>a>>b; cout<<(a+b)/2<< "\n" ; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0955 - お年玉 |
ユーザー名 | ei2007 |
投稿日時 | 2022-09-09 15:58:28 |
言語 | C++17 |
状態 | Accepted |
得点 | 3 |
ソースコード長 | 532 Byte |
最大実行時間 | 30 ms |
最大メモリ使用量 | 636 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 3 / 3 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in1.txt | AC | 30 ms | 604 KB |
1
|
in2.txt | AC | 19 ms | 580 KB |
1
|
in3.txt | AC | 21 ms | 548 KB |
1
|
in4.txt | AC | 19 ms | 516 KB |
1
|
in5.txt | AC | 18 ms | 484 KB |
1
|
in6.txt | AC | 19 ms | 456 KB |
1
|
in7.txt | AC | 22 ms | 432 KB |
1
|
in8.txt | AC | 19 ms | 532 KB |
1
|
in9.txt | AC | 22 ms | 504 KB |
1
|
in10.txt | AC | 23 ms | 572 KB |
1
|
in11.txt | AC | 24 ms | 540 KB |
1
|
in12.txt | AC | 20 ms | 636 KB |
1
|
in13.txt | AC | 20 ms | 608 KB |
1
|