結果
| 問題 | No.394 ハーフパイプ(1) |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2015-10-27 23:29:43 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 66,520 KB |
| 最終ジャッジ日時 | 2026-05-10 04:17:33 |
| 合計ジャッジ時間 | 946 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:12:19: error: 'accumulate' was not declared in this scope
12 | int ans = accumulate(s.begin(), s.end(), 0) - *min_element(s.begin(), s.end()) - *max_element(s.begin(), s.end());
| ^~~~~~~~~~
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cassert>
using namespace std;
int main(){
vector<int> s(6);
for(int i=0; i<6; i++){
scanf("%d", &s[i]);
assert(0<=s[i] && s[i]<=100);
}
int ans = accumulate(s.begin(), s.end(), 0) - *min_element(s.begin(), s.end()) - *max_element(s.begin(), s.end());
ans *= 25;
printf("%d.%02d\n", ans/100, ans%100);
}
koyumeishi