Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I am creating a program with Visual Basic Script files with C++. Pin
Dave Kreskowiak26-Jun-20 9:16
mveDave Kreskowiak26-Jun-20 9:16 
QuestionDebug assertion failed in occcont.cpp file Pin
Member 1464252324-Jun-20 21:24
Member 1464252324-Jun-20 21:24 
AnswerRe: Debug assertion failed in occcont.cpp file Pin
Victor Nijegorodov24-Jun-20 22:27
Victor Nijegorodov24-Jun-20 22:27 
AnswerRe: Debug assertion failed in occcont.cpp file Pin
Richard MacCutchan24-Jun-20 22:30
mveRichard MacCutchan24-Jun-20 22:30 
QuestionCreate a timer Pin
Member 1486543216-Jun-20 23:00
Member 1486543216-Jun-20 23:00 
AnswerRe: Create a timer Pin
Richard MacCutchan16-Jun-20 23:33
mveRichard MacCutchan16-Jun-20 23:33 
SuggestionRe: Create a timer Pin
David Crow18-Jun-20 5:25
David Crow18-Jun-20 5:25 
QuestionHandling large numbers Pin
Member 1484924616-Jun-20 22:18
Member 1484924616-Jun-20 22:18 
#include<stdio.h>
void main()
{
int t,j;
scanf("%d",&t);
for(j=0;j<t;j++)
{ int num;
scanf("%d",&num);
while(num!=1)
{if(num%2==0)
num=num/2;
else
num=(3*num+1);
}
if(num==1)printf("YES\n");
else printf("NO\n");
}
}

This is my small version of given problem , the constraint is very big please give new code which satisfy the constraint mentioned in the link

<a href=""></a><code><a href=""></a><pre><pre lang="text"></pre></pre></code><a href="https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/conject-it/description/">Conject-It ! | Basics of Input/Output &amp; Basic Programming Practice Problems | HackerEarth</a>[<a href="https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/conject-it/description/" target="_blank" title="New Window">^</a>]
AnswerRe: Handling large numbers Pin
OriginalGriff16-Jun-20 22:19
mveOriginalGriff16-Jun-20 22:19 
AnswerRe: Handling large numbers Pin
CPallini17-Jun-20 4:16
mveCPallini17-Jun-20 4:16 
GeneralRe: Handling large numbers Pin
David Crow18-Jun-20 5:30
David Crow18-Jun-20 5:30 
GeneralRe: Handling large numbers Pin
Peter_in_278018-Jun-20 12:48
professionalPeter_in_278018-Jun-20 12:48 
QuestionHelp me - C++ Pin
Coder1122334416-Jun-20 4:05
Coder1122334416-Jun-20 4:05 
AnswerRe: Help me - C++ Pin
CPallini16-Jun-20 4:47
mveCPallini16-Jun-20 4:47 
AnswerRe: Help me - C++ Pin
Richard MacCutchan16-Jun-20 5:05
mveRichard MacCutchan16-Jun-20 5:05 
AnswerRe: Help me - C++ Pin
ZurdoDev16-Jun-20 5:26
professionalZurdoDev16-Jun-20 5:26 
GeneralRe: Help me - C++ Pin
kalberts16-Jun-20 5:49
kalberts16-Jun-20 5:49 
AnswerRe: Help me - C++ Pin
kalberts16-Jun-20 5:36
kalberts16-Jun-20 5:36 
GeneralRe: Help me - C++ Pin
Richard MacCutchan16-Jun-20 6:06
mveRichard MacCutchan16-Jun-20 6:06 
QuestionVisual Studio and Windows SDKs - need some experienced comments about SDK usage and RTLs Pin
charlieg11-Jun-20 12:44
charlieg11-Jun-20 12:44 
AnswerRe: Visual Studio and Windows SDKs - need some experienced comments about SDK usage and RTLs Pin
Richard MacCutchan11-Jun-20 21:32
mveRichard MacCutchan11-Jun-20 21:32 
AnswerRe: Visual Studio and Windows SDKs - need some experienced comments about SDK usage and RTLs Pin
Mircea Neacsu12-Jun-20 2:24
Mircea Neacsu12-Jun-20 2:24 
GeneralRe: Visual Studio and Windows SDKs - need some experienced comments about SDK usage and RTLs Pin
charlieg12-Jun-20 8:27
charlieg12-Jun-20 8:27 
GeneralRe: Visual Studio and Windows SDKs - need some experienced comments about SDK usage and RTLs Pin
Mircea Neacsu12-Jun-20 8:59
Mircea Neacsu12-Jun-20 8:59 
QuestionRecursion to normal way Pin
iNoor728-Jun-20 9:28
iNoor728-Jun-20 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.