Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
19962 | 陶俊宸 | 奇怪的车牌号 | C++ | Accepted | 100 | 0 MS | 256 KB | 273 | 2021-05-27 19:10:49 |
#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; }