This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vector> | |
| #include <cstdio> | |
| #include <algorithm> | |
| #include <ctime> | |
| class Log { | |
| public: | |
| static void print(const char* strategy, long long int start, long long int end){ | |
| printf("%s: %f seconds\n", strategy, (double)(end - start) / 1000000); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import cv2 as cv | |
| from os import listdir | |
| import evaluation | |
| from random import shuffle | |
| def main(): | |
| print("Voting initiation...") | |
| parser = argparse.ArgumentParser(description="Binarization evaluation pipeline") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a; | |
| scanf (“%d”, &a); | |
| if ((a & (a - 1)) == 0) | |
| printf (“Numarul este putere a lui 2.”); | |
| else | |
| printf (“Numarul nu este putere a lui 2.”); | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a; | |
| scanf (“%d”, &a); | |
| if ((a & 1) == 0) | |
| printf (“Numarul este par.”); | |
| else | |
| printf (“Numarul este impar.”); | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a, b; | |
| scanf (“%d%d”, &a, &b); | |
| a = a ^ b; | |
| b = a ^ b; | |
| a = a ^ b; | |
| printf (“a = %d, b = %d\n”, a, b); | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| signed int a = 2; | |
| signed int b = -2; | |
| if (a > b) | |
| printf („%u este mai mare decat -2.\n”, a, b); | |
| else | |
| printf (“%u este mai mic decat -2\n”, a, b); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| unsigned int a = 2; | |
| signed int b = -2; | |
| if (a > b) | |
| printf („%u este mai mare decat %d.\n”, a, b); | |
| else | |
| printf (“%u este mai mic decat %d.\n”, a, b); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a = 5; | |
| int b = 10; | |
| int* const ptr = &a; | |
| printf ("Valoarea de la adresa indicata este: %d.\n", *ptr); | |
| ptr = &b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a = 5; | |
| int b = 10; | |
| int* const ptr = &a; | |
| printf ("Valoarea de la adresa indicata este: %d.\n", *ptr); | |
| *ptr = b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a = 5; | |
| int b = 10; | |
| const int* ptr = &a; | |
| printf ("Valoarea de la adresa indicata este: %d.\n", *ptr); | |
| *ptr = b; |
NewerOlder