ソースコード
select
 age.age_name,
 "5時間",
"5時間以上",
"6時間以上",
"7時間以上",
"8時間以上",
"9時間以上",
"不詳"
from (
select
 age_code,
 sum(case time_code when 120 then target_pop else 0 end) as "5時間",
 sum(case time_code when 130 then target_pop else 0 end) as "5時間以上",
 sum(case time_code when 140 then target_pop else 0 end) as "6時間以上",
 sum(case time_code when 150 then target_pop else 0 end) as "7時間以上",
 sum(case time_code when 160 then target_pop else 0 end) as "8時間以上",
 sum(case time_code when 170 then target_pop else 0 end) as "9時間以上",
 sum(case time_code when 180 then target_pop else 0 end) as "不詳"
from
 sleep_time_dtl
group by
 age_code
 ) dtl
 inner join age_grp age
 on dtl.age_code = age.age_code
order by
 dtl.age_code asc
 
提出情報
提出日時2022/09/22 01:28:14
コンテスト練習用コンテスト
問題年齢別睡眠時間分析
受験者Reliability
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量90 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
90 MB
データパターン2
WA
87 MB