ソースコード
with a(PF_CODE, TOTAL_AMT) as (
select PF_CODE, TOTAL_AMT 
from POPU_TRANSITION
where SURVEY_YEAR==2015
),
b(PF_CODE, TOTAL_AMT) as (
select PF_CODE, TOTAL_AMT 
from POPU_TRANSITION
where SURVEY_YEAR==2020
)
select 
PREFECTURE.PF_CODE, PREFECTURE.PF_NAME, a.TOTAL_AMT as "総人口2015年", b.TOTAL_AMT as "総人口2020年",
round(cast(a.TOTAL_AMT as REAL) / cast(b.TOTAL_AMT as REAL)*100) as "人口増加率"
from PREFECTURE
inner join a
on PREFECTURE.PF_CODE == a.PF_CODE
inner join b
on PREFECTURE.PF_CODE == b.PF_CODE
where cast(a.TOTAL_AMT as REAL) / cast(b.TOTAL_AMT as REAL)*100 >= 100
order by round(cast(a.TOTAL_AMT as REAL) / cast(b.TOTAL_AMT as REAL)*100) desc, PREFECTURE.PF_CODE
提出情報
提出日時2022/07/20 19:14:26
コンテスト練習用コンテスト
問題人口増加率分析
受験者karunru
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量104 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
104 MB
データパターン2
WA
94 MB