提交时间:2021-05-27 19:10:49

运行 ID: 19962

#include<bits/stdc++.h> const short sq[3]={4,16,36}; short ans; int main(){ for(short i=0;i<=6;i++){ for(short j=0;j<=6;j++){ for(short k=0;k<3;k++){ if((i+j)*4+12==sq[k]){ ans++; break; } } } } printf("%hd",ans); return 0; }