Cody

Solution 1451064

Submitted on 27 Feb 2018 by cokakola
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(circle_points(1),4))

1 4

2   Pass
assert(isequal(circle_points(3),4))

3 4

3   Pass
assert(isequal(circle_points(5),12))

5 12 5 12

4   Pass
assert(isequal(circle_points(65),36))

65 36

5   Pass
assert(isequal(circle_points(64090),324))

64090 324

6   Pass
assert(isequal(circle_points(326441),12))

326441 12

7   Pass
assert(isequal(circle_points(359125),420))

359125 420

8   Pass
assert(isequal(circle_points(1000001),36))

1000001 36

9   Pass
assert(isequal(circle_points(2417899275),20))

1.0e+09 * 2.4179 0.0000

10   Pass
assert(isequal(circle_points(31432690549),8748))

1.0e+10 * 3.1433 0.0000

11   Pass
assert(isequal(circle_points(11472932050385),78732))

1.0e+13 * 1.1473 0.0000

12   Pass
assert(isequal(circle_points(1021090952484265),236196))

1.0e+15 * 1.0211 0.0000

13   Pass
assert(isequal(circle_points(6095127531752228),78732))

1.0e+15 * 6.0951 0.0000

14   Pass
assert(isequal(circle_points(5*circle_points(630209)),12))

630209 1111 5555 12

15   Pass
y=arrayfun(@(x) circle_points(x),1000:2000); [m1,m2]=max(y); assert(isequal(m1-m2,2)); [h1,h2]=hist(y,unique(y)); assert(isequal(prod(h1-h2),1399066124544000))

1000 28 1000 28 1001 12 1001 12 1002 4 1002 4 1003 12 1003 12 1004 4 1004 4 1005 12 1005 12 1006 4 1006 4 1007 12 1007 12 1008 4 1008 4 1009 12 1009 12 1010 36 1010 36 1011 12 1011 12 1012 4 1012 4 1013 12 1013 12 1014 20 1014 20 1015 36 1015 36 1016 4 1016 4 1017 12 1017 12 1018 12 1018 12 1019 4 1019 4 1020 36 1020 36 1021 12 1021 12 1022 12 1022 12 1023 4 1023 4 1024 4 1024 4 1025 60 1025 60 1026 4 1026 4 1027 12 1027 12 1028 12 1028 12 1029 4 1029 4 1030 12 1030 12 1031 4 1031 4 1032 4 1032 4 1033 12 1033 12 1034 4 1034 4 1035 12 1035 12 1036 12 1036 12 1037 36 1037 36 1038 12 1038 12 1039 4 1039 4 1040 36 1040 36 1041 4 1041 4 1042 12 1042 12 1043 12 1043 12 1044 12 1044 12 1045 12 1045 12 1046 4 1046 4 1047 12 1047 12 1048 4 1048 4 1049 12 1049 12 1050 20 1050 20 1051 4 1051 4 1052 4 1052 4 1053 12 1053 12 1054 12 1054 12 1055 12 1055 12 1056 4 1056 4 1057 4 1057 4 1058 4 1058 4 1059 12 1059 12 1060 36 1060 36 1061 12 1061 12 1062 4 1062 4 1063 4 1063 4 1064 4 1064 4 1065 12 1065 12 1066 36 1066 36 1067 12 1067 12 1068 12 1068 12 1069 12 1069 12 1070 12 1070 12 1071 12 1071 12 1072 4 1072 4 1073 36 1073 36 1074 4 1074 4 1075 20 1075 20 1076 12 1076 12 1077 4 1077 4 1078 4 1078 4 1079 12 1079 12 1080 12 1080 12 1081 4 1081 4 1082 12 1082 12 1083 4 1083 4 1084 4 1084 4 1085 12 1085 12 1086 12 1086 12 1087 4 1087 4 1088 12 1088 12 1089 4 1089 4 1090 36 1090 36 1091 4 1091 4 1092 12 1092 12 1093 12 1093 12 1094 4 1094 4 1095 36 1095 36 1096 12 1096 12 1097 12 1097 12 1098 12 1098 12 1099 12 1099 12 1100 20 1100 20 1101 4 1101 4 1102 12 1102 12 1103 4 1103 4 1104 4 1104 4 1105 108 1105 108 1106 4 1106 4 1107 12 1107 12 1108 12 1108 12 1109 12 1109 12 1110 36 1110 36 1111 12 1111 12 1112 4 1112 4 1113 12 1113 12 1114 12 1114 12 1115 12 1115 12 1116 4 1116 4 1117 12 1117 12 1118 12 1118 12 1119 12 1119 12 1120 12 1120 12 1121 4 1121 4 1122 12 1122 12 1123 4 1123 4 1124 12 1124 12 1125 28 1125 28 1126 4 1126 4 1127 4 1127 4 1128 4 1128 4 1129 12 1129 12 1130 36 1130 36 1131 36 1131 36 1132 4 1132 4 1133 4 1133 4 1134 4 1134 4 1135 12 1135 12 1136 4 1136 4 1137 4 1137 4 1138 12 1138 12 1139 12 1139 12 1140 12 1140 12 1141 4 1141 4 1142 4 1142 4 1143 4 1143 4 1144 12 1144 12 1145 36 1145 36 1146 4 1146 4 1147 12 1147 12 1148 12 1148 12 1149 4 1149 4 1150 20 1150 20 1151 4 1151 4 1152 4 1152 4 1153 12 1153 12 1154 12 1154 12 1155 12 1155 12 1156 20 1156 20 1157 36 1157 36 1158 12 1158 12 1159 12 1159 12 1160 36 1160 36 1161 4 1161 4 1162 4 1162 4 1163 4 1163 4 1164 12 1164 12 1165 36 1165 36 1166 12 1166 12 1167 12 1167 12 1168 12 1168 12 1169 4 1169 4 1170 36 1170 36 1171 4 1171 4 1172 12 1172 12 1173 12 1173 12 1174 4 1174 4 1175 20 1175 20 1176 4 1176 4 1177 4 1177 4 1178 4 1178 4 1179 4 1179 4 1180 12 1180 12 1181 12 1181 12 1182 12 1182 12 1183 20 1183 20 1184 12 1184 12 1185 12 1185 12 1186 12 1186 12 1187 4 1187 4 1188 4 1188 4 1189 36 1189 36 1190 36 1190 36 1191 12 1191 12 1192 12...