x とちゅうで解けなくて、あきるかもしれません。(最後までやれよ?)
目的
秒と分の変換の為に60で高速に割りたい
60は、15 x 4である
どっかの論文やレポートにいろいろ書いてあつたが忘れた
とりあえず、やつてみる
予想
差は、とても小さい
結果
ほぼ0,1で255の時だけ差2 (差を表引きしたらいけるかも)
オンラインコンパイラ
#include <iostream>
using namespace std;
int main(void){
// Your code here!
printf("\n\nSTART\n\n");
for(int ii=0;ii<257;ii++){
printf("<%d> (%d)/(15)=(%d) {%d}/{16}{%d} (%d){%d}=[%d]\n"
,ii,ii,ii/15, ii,ii/16 ,
ii/15,ii/16,
ii/15-ii/16
);
}//for ii
}//main
結果
START
<0> (0)/(15)=(0) {0}/{16}{0} (0){0}=[0]
<1> (1)/(15)=(0) {1}/{16}{0} (0){0}=[0]
<2> (2)/(15)=(0) {2}/{16}{0} (0){0}=[0]
<3> (3)/(15)=(0) {3}/{16}{0} (0){0}=[0]
<4> (4)/(15)=(0) {4}/{16}{0} (0){0}=[0]
<5> (5)/(15)=(0) {5}/{16}{0} (0){0}=[0]
<6> (6)/(15)=(0) {6}/{16}{0} (0){0}=[0]
<7> (7)/(15)=(0) {7}/{16}{0} (0){0}=[0]
<8> (8)/(15)=(0) {8}/{16}{0} (0){0}=[0]
<9> (9)/(15)=(0) {9}/{16}{0} (0){0}=[0]
<10> (10)/(15)=(0) {10}/{16}{0} (0){0}=[0]
<11> (11)/(15)=(0) {11}/{16}{0} (0){0}=[0]
<12> (12)/(15)=(0) {12}/{16}{0} (0){0}=[0]
<13> (13)/(15)=(0) {13}/{16}{0} (0){0}=[0]
<14> (14)/(15)=(0) {14}/{16}{0} (0){0}=[0]
<15> (15)/(15)=(1) {15}/{16}{0} (1){0}=[1]
<16> (16)/(15)=(1) {16}/{16}{1} (1){1}=[0]
<17> (17)/(15)=(1) {17}/{16}{1} (1){1}=[0]
<18> (18)/(15)=(1) {18}/{16}{1} (1){1}=[0]
<19> (19)/(15)=(1) {19}/{16}{1} (1){1}=[0]
<20> (20)/(15)=(1) {20}/{16}{1} (1){1}=[0]
<21> (21)/(15)=(1) {21}/{16}{1} (1){1}=[0]
<22> (22)/(15)=(1) {22}/{16}{1} (1){1}=[0]
<23> (23)/(15)=(1) {23}/{16}{1} (1){1}=[0]
<24> (24)/(15)=(1) {24}/{16}{1} (1){1}=[0]
<25> (25)/(15)=(1) {25}/{16}{1} (1){1}=[0]
<26> (26)/(15)=(1) {26}/{16}{1} (1){1}=[0]
<27> (27)/(15)=(1) {27}/{16}{1} (1){1}=[0]
<28> (28)/(15)=(1) {28}/{16}{1} (1){1}=[0]
<29> (29)/(15)=(1) {29}/{16}{1} (1){1}=[0]
<30> (30)/(15)=(2) {30}/{16}{1} (2){1}=[1]
<31> (31)/(15)=(2) {31}/{16}{1} (2){1}=[1]
<32> (32)/(15)=(2) {32}/{16}{2} (2){2}=[0]
<33> (33)/(15)=(2) {33}/{16}{2} (2){2}=[0]
<34> (34)/(15)=(2) {34}/{16}{2} (2){2}=[0]
<35> (35)/(15)=(2) {35}/{16}{2} (2){2}=[0]
<36> (36)/(15)=(2) {36}/{16}{2} (2){2}=[0]
<37> (37)/(15)=(2) {37}/{16}{2} (2){2}=[0]
<38> (38)/(15)=(2) {38}/{16}{2} (2){2}=[0]
<39> (39)/(15)=(2) {39}/{16}{2} (2){2}=[0]
<40> (40)/(15)=(2) {40}/{16}{2} (2){2}=[0]
<41> (41)/(15)=(2) {41}/{16}{2} (2){2}=[0]
<42> (42)/(15)=(2) {42}/{16}{2} (2){2}=[0]
<43> (43)/(15)=(2) {43}/{16}{2} (2){2}=[0]
<44> (44)/(15)=(2) {44}/{16}{2} (2){2}=[0]
<45> (45)/(15)=(3) {45}/{16}{2} (3){2}=[1]
<46> (46)/(15)=(3) {46}/{16}{2} (3){2}=[1]
<47> (47)/(15)=(3) {47}/{16}{2} (3){2}=[1]
<48> (48)/(15)=(3) {48}/{16}{3} (3){3}=[0]
<49> (49)/(15)=(3) {49}/{16}{3} (3){3}=[0]
<50> (50)/(15)=(3) {50}/{16}{3} (3){3}=[0]
<51> (51)/(15)=(3) {51}/{16}{3} (3){3}=[0]
<52> (52)/(15)=(3) {52}/{16}{3} (3){3}=[0]
<53> (53)/(15)=(3) {53}/{16}{3} (3){3}=[0]
<54> (54)/(15)=(3) {54}/{16}{3} (3){3}=[0]
<55> (55)/(15)=(3) {55}/{16}{3} (3){3}=[0]
<56> (56)/(15)=(3) {56}/{16}{3} (3){3}=[0]
<57> (57)/(15)=(3) {57}/{16}{3} (3){3}=[0]
<58> (58)/(15)=(3) {58}/{16}{3} (3){3}=[0]
<59> (59)/(15)=(3) {59}/{16}{3} (3){3}=[0]
<60> (60)/(15)=(4) {60}/{16}{3} (4){3}=[1]
<61> (61)/(15)=(4) {61}/{16}{3} (4){3}=[1]
<62> (62)/(15)=(4) {62}/{16}{3} (4){3}=[1]
<63> (63)/(15)=(4) {63}/{16}{3} (4){3}=[1]
<64> (64)/(15)=(4) {64}/{16}{4} (4){4}=[0]
<65> (65)/(15)=(4) {65}/{16}{4} (4){4}=[0]
<66> (66)/(15)=(4) {66}/{16}{4} (4){4}=[0]
<67> (67)/(15)=(4) {67}/{16}{4} (4){4}=[0]
<68> (68)/(15)=(4) {68}/{16}{4} (4){4}=[0]
<69> (69)/(15)=(4) {69}/{16}{4} (4){4}=[0]
<70> (70)/(15)=(4) {70}/{16}{4} (4){4}=[0]
<71> (71)/(15)=(4) {71}/{16}{4} (4){4}=[0]
<72> (72)/(15)=(4) {72}/{16}{4} (4){4}=[0]
<73> (73)/(15)=(4) {73}/{16}{4} (4){4}=[0]
<74> (74)/(15)=(4) {74}/{16}{4} (4){4}=[0]
<75> (75)/(15)=(5) {75}/{16}{4} (5){4}=[1]
<76> (76)/(15)=(5) {76}/{16}{4} (5){4}=[1]
<77> (77)/(15)=(5) {77}/{16}{4} (5){4}=[1]
<78> (78)/(15)=(5) {78}/{16}{4} (5){4}=[1]
<79> (79)/(15)=(5) {79}/{16}{4} (5){4}=[1]
<80> (80)/(15)=(5) {80}/{16}{5} (5){5}=[0]
<81> (81)/(15)=(5) {81}/{16}{5} (5){5}=[0]
<82> (82)/(15)=(5) {82}/{16}{5} (5){5}=[0]
<83> (83)/(15)=(5) {83}/{16}{5} (5){5}=[0]
<84> (84)/(15)=(5) {84}/{16}{5} (5){5}=[0]
<85> (85)/(15)=(5) {85}/{16}{5} (5){5}=[0]
<86> (86)/(15)=(5) {86}/{16}{5} (5){5}=[0]
<87> (87)/(15)=(5) {87}/{16}{5} (5){5}=[0]
<88> (88)/(15)=(5) {88}/{16}{5} (5){5}=[0]
<89> (89)/(15)=(5) {89}/{16}{5} (5){5}=[0]
<90> (90)/(15)=(6) {90}/{16}{5} (6){5}=[1]
<91> (91)/(15)=(6) {91}/{16}{5} (6){5}=[1]
<92> (92)/(15)=(6) {92}/{16}{5} (6){5}=[1]
<93> (93)/(15)=(6) {93}/{16}{5} (6){5}=[1]
<94> (94)/(15)=(6) {94}/{16}{5} (6){5}=[1]
<95> (95)/(15)=(6) {95}/{16}{5} (6){5}=[1]
<96> (96)/(15)=(6) {96}/{16}{6} (6){6}=[0]
<97> (97)/(15)=(6) {97}/{16}{6} (6){6}=[0]
<98> (98)/(15)=(6) {98}/{16}{6} (6){6}=[0]
<99> (99)/(15)=(6) {99}/{16}{6} (6){6}=[0]
<100> (100)/(15)=(6) {100}/{16}{6} (6){6}=[0]
<101> (101)/(15)=(6) {101}/{16}{6} (6){6}=[0]
<102> (102)/(15)=(6) {102}/{16}{6} (6){6}=[0]
<103> (103)/(15)=(6) {103}/{16}{6} (6){6}=[0]
<104> (104)/(15)=(6) {104}/{16}{6} (6){6}=[0]
<105> (105)/(15)=(7) {105}/{16}{6} (7){6}=[1]
<106> (106)/(15)=(7) {106}/{16}{6} (7){6}=[1]
<107> (107)/(15)=(7) {107}/{16}{6} (7){6}=[1]
<108> (108)/(15)=(7) {108}/{16}{6} (7){6}=[1]
<109> (109)/(15)=(7) {109}/{16}{6} (7){6}=[1]
<110> (110)/(15)=(7) {110}/{16}{6} (7){6}=[1]
<111> (111)/(15)=(7) {111}/{16}{6} (7){6}=[1]
<112> (112)/(15)=(7) {112}/{16}{7} (7){7}=[0]
<113> (113)/(15)=(7) {113}/{16}{7} (7){7}=[0]
<114> (114)/(15)=(7) {114}/{16}{7} (7){7}=[0]
<115> (115)/(15)=(7) {115}/{16}{7} (7){7}=[0]
<116> (116)/(15)=(7) {116}/{16}{7} (7){7}=[0]
<117> (117)/(15)=(7) {117}/{16}{7} (7){7}=[0]
<118> (118)/(15)=(7) {118}/{16}{7} (7){7}=[0]
<119> (119)/(15)=(7) {119}/{16}{7} (7){7}=[0]
<120> (120)/(15)=(8) {120}/{16}{7} (8){7}=[1]
<121> (121)/(15)=(8) {121}/{16}{7} (8){7}=[1]
<122> (122)/(15)=(8) {122}/{16}{7} (8){7}=[1]
<123> (123)/(15)=(8) {123}/{16}{7} (8){7}=[1]
<124> (124)/(15)=(8) {124}/{16}{7} (8){7}=[1]
<125> (125)/(15)=(8) {125}/{16}{7} (8){7}=[1]
<126> (126)/(15)=(8) {126}/{16}{7} (8){7}=[1]
<127> (127)/(15)=(8) {127}/{16}{7} (8){7}=[1]
<128> (128)/(15)=(8) {128}/{16}{8} (8){8}=[0]
<129> (129)/(15)=(8) {129}/{16}{8} (8){8}=[0]
<130> (130)/(15)=(8) {130}/{16}{8} (8){8}=[0]
<131> (131)/(15)=(8) {131}/{16}{8} (8){8}=[0]
<132> (132)/(15)=(8) {132}/{16}{8} (8){8}=[0]
<133> (133)/(15)=(8) {133}/{16}{8} (8){8}=[0]
<134> (134)/(15)=(8) {134}/{16}{8} (8){8}=[0]
<135> (135)/(15)=(9) {135}/{16}{8} (9){8}=[1]
<136> (136)/(15)=(9) {136}/{16}{8} (9){8}=[1]
<137> (137)/(15)=(9) {137}/{16}{8} (9){8}=[1]
<138> (138)/(15)=(9) {138}/{16}{8} (9){8}=[1]
<139> (139)/(15)=(9) {139}/{16}{8} (9){8}=[1]
<140> (140)/(15)=(9) {140}/{16}{8} (9){8}=[1]
<141> (141)/(15)=(9) {141}/{16}{8} (9){8}=[1]
<142> (142)/(15)=(9) {142}/{16}{8} (9){8}=[1]
<143> (143)/(15)=(9) {143}/{16}{8} (9){8}=[1]
<144> (144)/(15)=(9) {144}/{16}{9} (9){9}=[0]
<145> (145)/(15)=(9) {145}/{16}{9} (9){9}=[0]
<146> (146)/(15)=(9) {146}/{16}{9} (9){9}=[0]
<147> (147)/(15)=(9) {147}/{16}{9} (9){9}=[0]
<148> (148)/(15)=(9) {148}/{16}{9} (9){9}=[0]
<149> (149)/(15)=(9) {149}/{16}{9} (9){9}=[0]
<150> (150)/(15)=(10) {150}/{16}{9} (10){9}=[1]
<151> (151)/(15)=(10) {151}/{16}{9} (10){9}=[1]
<152> (152)/(15)=(10) {152}/{16}{9} (10){9}=[1]
<153> (153)/(15)=(10) {153}/{16}{9} (10){9}=[1]
<154> (154)/(15)=(10) {154}/{16}{9} (10){9}=[1]
<155> (155)/(15)=(10) {155}/{16}{9} (10){9}=[1]
<156> (156)/(15)=(10) {156}/{16}{9} (10){9}=[1]
<157> (157)/(15)=(10) {157}/{16}{9} (10){9}=[1]
<158> (158)/(15)=(10) {158}/{16}{9} (10){9}=[1]
<159> (159)/(15)=(10) {159}/{16}{9} (10){9}=[1]
<160> (160)/(15)=(10) {160}/{16}{10} (10){10}=[0]
<161> (161)/(15)=(10) {161}/{16}{10} (10){10}=[0]
<162> (162)/(15)=(10) {162}/{16}{10} (10){10}=[0]
<163> (163)/(15)=(10) {163}/{16}{10} (10){10}=[0]
<164> (164)/(15)=(10) {164}/{16}{10} (10){10}=[0]
<165> (165)/(15)=(11) {165}/{16}{10} (11){10}=[1]
<166> (166)/(15)=(11) {166}/{16}{10} (11){10}=[1]
<167> (167)/(15)=(11) {167}/{16}{10} (11){10}=[1]
<168> (168)/(15)=(11) {168}/{16}{10} (11){10}=[1]
<169> (169)/(15)=(11) {169}/{16}{10} (11){10}=[1]
<170> (170)/(15)=(11) {170}/{16}{10} (11){10}=[1]
<171> (171)/(15)=(11) {171}/{16}{10} (11){10}=[1]
<172> (172)/(15)=(11) {172}/{16}{10} (11){10}=[1]
<173> (173)/(15)=(11) {173}/{16}{10} (11){10}=[1]
<174> (174)/(15)=(11) {174}/{16}{10} (11){10}=[1]
<175> (175)/(15)=(11) {175}/{16}{10} (11){10}=[1]
<176> (176)/(15)=(11) {176}/{16}{11} (11){11}=[0]
<177> (177)/(15)=(11) {177}/{16}{11} (11){11}=[0]
<178> (178)/(15)=(11) {178}/{16}{11} (11){11}=[0]
<179> (179)/(15)=(11) {179}/{16}{11} (11){11}=[0]
<180> (180)/(15)=(12) {180}/{16}{11} (12){11}=[1]
<181> (181)/(15)=(12) {181}/{16}{11} (12){11}=[1]
<182> (182)/(15)=(12) {182}/{16}{11} (12){11}=[1]
<183> (183)/(15)=(12) {183}/{16}{11} (12){11}=[1]
<184> (184)/(15)=(12) {184}/{16}{11} (12){11}=[1]
<185> (185)/(15)=(12) {185}/{16}{11} (12){11}=[1]
<186> (186)/(15)=(12) {186}/{16}{11} (12){11}=[1]
<187> (187)/(15)=(12) {187}/{16}{11} (12){11}=[1]
<188> (188)/(15)=(12) {188}/{16}{11} (12){11}=[1]
<189> (189)/(15)=(12) {189}/{16}{11} (12){11}=[1]
<190> (190)/(15)=(12) {190}/{16}{11} (12){11}=[1]
<191> (191)/(15)=(12) {191}/{16}{11} (12){11}=[1]
<192> (192)/(15)=(12) {192}/{16}{12} (12){12}=[0]
<193> (193)/(15)=(12) {193}/{16}{12} (12){12}=[0]
<194> (194)/(15)=(12) {194}/{16}{12} (12){12}=[0]
<195> (195)/(15)=(13) {195}/{16}{12} (13){12}=[1]
<196> (196)/(15)=(13) {196}/{16}{12} (13){12}=[1]
<197> (197)/(15)=(13) {197}/{16}{12} (13){12}=[1]
<198> (198)/(15)=(13) {198}/{16}{12} (13){12}=[1]
<199> (199)/(15)=(13) {199}/{16}{12} (13){12}=[1]
<200> (200)/(15)=(13) {200}/{16}{12} (13){12}=[1]
<201> (201)/(15)=(13) {201}/{16}{12} (13){12}=[1]
<202> (202)/(15)=(13) {202}/{16}{12} (13){12}=[1]
<203> (203)/(15)=(13) {203}/{16}{12} (13){12}=[1]
<204> (204)/(15)=(13) {204}/{16}{12} (13){12}=[1]
<205> (205)/(15)=(13) {205}/{16}{12} (13){12}=[1]
<206> (206)/(15)=(13) {206}/{16}{12} (13){12}=[1]
<207> (207)/(15)=(13) {207}/{16}{12} (13){12}=[1]
<208> (208)/(15)=(13) {208}/{16}{13} (13){13}=[0]
<209> (209)/(15)=(13) {209}/{16}{13} (13){13}=[0]
<210> (210)/(15)=(14) {210}/{16}{13} (14){13}=[1]
<211> (211)/(15)=(14) {211}/{16}{13} (14){13}=[1]
<212> (212)/(15)=(14) {212}/{16}{13} (14){13}=[1]
<213> (213)/(15)=(14) {213}/{16}{13} (14){13}=[1]
<214> (214)/(15)=(14) {214}/{16}{13} (14){13}=[1]
<215> (215)/(15)=(14) {215}/{16}{13} (14){13}=[1]
<216> (216)/(15)=(14) {216}/{16}{13} (14){13}=[1]
<217> (217)/(15)=(14) {217}/{16}{13} (14){13}=[1]
<218> (218)/(15)=(14) {218}/{16}{13} (14){13}=[1]
<219> (219)/(15)=(14) {219}/{16}{13} (14){13}=[1]
<220> (220)/(15)=(14) {220}/{16}{13} (14){13}=[1]
<221> (221)/(15)=(14) {221}/{16}{13} (14){13}=[1]
<222> (222)/(15)=(14) {222}/{16}{13} (14){13}=[1]
<223> (223)/(15)=(14) {223}/{16}{13} (14){13}=[1]
<224> (224)/(15)=(14) {224}/{16}{14} (14){14}=[0]
<225> (225)/(15)=(15) {225}/{16}{14} (15){14}=[1]
<226> (226)/(15)=(15) {226}/{16}{14} (15){14}=[1]
<227> (227)/(15)=(15) {227}/{16}{14} (15){14}=[1]
<228> (228)/(15)=(15) {228}/{16}{14} (15){14}=[1]
<229> (229)/(15)=(15) {229}/{16}{14} (15){14}=[1]
<230> (230)/(15)=(15) {230}/{16}{14} (15){14}=[1]
<231> (231)/(15)=(15) {231}/{16}{14} (15){14}=[1]
<232> (232)/(15)=(15) {232}/{16}{14} (15){14}=[1]
<233> (233)/(15)=(15) {233}/{16}{14} (15){14}=[1]
<234> (234)/(15)=(15) {234}/{16}{14} (15){14}=[1]
<235> (235)/(15)=(15) {235}/{16}{14} (15){14}=[1]
<236> (236)/(15)=(15) {236}/{16}{14} (15){14}=[1]
<237> (237)/(15)=(15) {237}/{16}{14} (15){14}=[1]
<238> (238)/(15)=(15) {238}/{16}{14} (15){14}=[1]
<239> (239)/(15)=(15) {239}/{16}{14} (15){14}=[1]
<240> (240)/(15)=(16) {240}/{16}{15} (16){15}=[1]
<241> (241)/(15)=(16) {241}/{16}{15} (16){15}=[1]
<242> (242)/(15)=(16) {242}/{16}{15} (16){15}=[1]
<243> (243)/(15)=(16) {243}/{16}{15} (16){15}=[1]
<244> (244)/(15)=(16) {244}/{16}{15} (16){15}=[1]
<245> (245)/(15)=(16) {245}/{16}{15} (16){15}=[1]
<246> (246)/(15)=(16) {246}/{16}{15} (16){15}=[1]
<247> (247)/(15)=(16) {247}/{16}{15} (16){15}=[1]
<248> (248)/(15)=(16) {248}/{16}{15} (16){15}=[1]
<249> (249)/(15)=(16) {249}/{16}{15} (16){15}=[1]
<250> (250)/(15)=(16) {250}/{16}{15} (16){15}=[1]
<251> (251)/(15)=(16) {251}/{16}{15} (16){15}=[1]
<252> (252)/(15)=(16) {252}/{16}{15} (16){15}=[1]
<253> (253)/(15)=(16) {253}/{16}{15} (16){15}=[1]
<254> (254)/(15)=(16) {254}/{16}{15} (16){15}=[1]
<255> (255)/(15)=(17) {255}/{16}{15} (17){15}=[2]
<256> (256)/(15)=(17) {256}/{16}{16} (17){16}=[1]