コード例 #1
0
ファイル: p1146.c プロジェクト: nazarov-yuriy/contests
int main()
{
	scanf("%d", &n);
	for(i=0;i<n*n;i++)
		scanf("%d", &arr[i]);
	calc_sums(arr, n, n);
	printf("%d", find3(n,n));
	return 0;
}
コード例 #2
0
ファイル: RandGameTest.cpp プロジェクト: yannxin/Qunar
void RandGame3()
{
	int i, j;
	for (i = 0; i <= N-5; i++)
		for (j = 0; j <= N-5; j++)
			if (find3(matrix, j, i))
			{
				print3(j, i);
				return;
			}
}
コード例 #3
0
ファイル: main.cpp プロジェクト: huellif/WA_Toggle
int main(int argc, char *argv[])
{
    bool running = false;


        TFullName res;
        TFindProcess find;
        while(find.Next(res) == KErrNone)
        {
            RProcess ph;
            ph.Open(res);

            if(ph.SecureId() == 0x2002B30D)

            if (ph.ExitType() == EExitPending)
            {
                running = true;
                break;
            }

            ph.Close();
        }



    if (running == false)
    {

        QProcess *myProcess = new QProcess;
        myProcess->start("whatsapp.exe");
    }
    else {

        QApplication app(argc, argv);
        CAknConfirmationNote* run = new (ELeave) CAknConfirmationNote;
        QT_TRAP_THROWING(run->ExecuteLD(_L("Closed WhatsApp")));
        TFullName res1;
        TFindProcess find1(_L("*[2002B306]*"));

        while(find1.Next(res1) == KErrNone)
        {
            RProcess ph1;
            ph1.Open(find1);
            ph1.Kill(KErrNone);
            ph1.Close();
        }

        TFullName res2;
        TFindProcess find2(_L("*[2002B310]*"));

        while(find2.Next(res2) == KErrNone)
        {
            RProcess ph2;
            ph2.Open(find2);
            ph2.Kill(KErrNone);
            ph2.Close();
        }

        TFullName res3;
        TFindProcess find3(_L("*[2002B30D]*"));

        while(find3.Next(res3) == KErrNone)
        {
            RProcess ph3;
            ph3.Open(find3);
            ph3.Kill(KErrNone);
            ph3.Close();
        }
        QTest::qWait(1500);
    }
    return 1;
}