ソースコード
select
    mst.age_name 年齢階層,
    time120.cnt "5時間未満",
    time130.cnt "5時間以上6時間未満",
    time140.cnt "6時間以上7時間未満",
    time150.cnt "7時間以上8時間未満",
    time160.cnt "8時間以上9時間未満",
    time170.cnt "9時間以上",
    time180.cnt 不詳
from
    (select age_code, age_name from age_grp) mst
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 120 ) time120
on mst.age_code = time120.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 130 ) time130
on mst.age_code = time130.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 140 ) time140
on mst.age_code = time140.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 150 ) time150
on mst.age_code = time150.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 160 ) time160
on mst.age_code = time160.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 170 ) time170
on mst.age_code = time170.age_code
inner join
    (select age_code, TARGET_POP cnt from sleep_time_dtl where time_code = 180) time180
on mst.age_code = time180.age_code 
group by 年齢階層
order by 年齢階層 asc; 
提出情報
提出日時2022/07/18 14:43:14
コンテスト練習用コンテスト
問題年齢別睡眠時間分析
受験者KT
状態 (詳細)TLE
(Time Limit Exceeded: 時間制限オーバー)
メモリ使用量89 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
TLE
89 MB
データパターン2
WA
80 MB