Submission #00069
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include <bits/stdc++.h> #include<gmpxx.h> #define yes cout<<"Yes\n" #define no cout<<"No\n" #define lmax LONG_LONG_MAX #define lmin LONG_LONG_MIN #define imax INT_MAX #define imin INT_MIN #define ll long long using namespace std; int main(){ int av = 0; int a; for ( int i = 0 ; i < 5;i++){ cin>>a; if (a<40){ a = 40; } av+=a; } cout<<av/5<<endl; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0005 - 平均点 (Average Score) |
ユーザー名 | gousuper(r2204) |
投稿日時 | 2024-04-26 16:04:41 |
言語 | C++17 |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 448 Byte |
最大実行時間 | 23 ms |
最大メモリ使用量 | 544 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | set1 | 2 / 2 | *1.txt |
2 | set2 | 2 / 2 | *[12].txt |
3 | set3 | 2 / 2 | *[1-3].txt |
4 | set4 | 2 / 2 | *[1-4].txt |
5 | set5 | 2 / 2 | *[1-5].txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||||
---|---|---|---|---|---|---|---|---|
2014-yo-t1-in1.txt | AC | 23 ms | 476 KB |
1
|
2
|
3
|
4
|
5
|
2014-yo-t1-in2.txt | AC | 17 ms | 440 KB |
2
|
3
|
4
|
5
|
|
2014-yo-t1-in3.txt | AC | 21 ms | 544 KB |
3
|
4
|
5
|
||
2014-yo-t1-in4.txt | AC | 20 ms | 520 KB |
4
|
5
|
|||
2014-yo-t1-in5.txt | AC | 20 ms | 496 KB |
5
|