This file contains 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 = 3; | |
int b = 2; | |
a = a - b; | |
b = b + a; | |
a = b - a; |
This file contains 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> | |
#include <algorithm> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c; | |
while (~scanf("%d%d%d", &a, &b, &c)) | |
{ |
This file contains 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() | |
{ | |
auto n = 0; | |
const auto modNum = 1000000; | |
while (~scanf("%d", &n)) | |
{ | |
n = n >= 25 ? 25 : n; |
This file contains 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> | |
#include <math.h> | |
int main() | |
{ | |
auto T = 1; | |
auto a = 0, b = 0, c = 0; | |
while (~scanf("%d%d%d", &a, &b, &c)) | |
{ | |
if (a == 0 && b == 0 && c == 0) break; |
This file contains 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> | |
#include <math.h> | |
int main() | |
{ | |
auto T = 1; | |
auto a = 0, b = 0, c = 0; | |
while (~scanf("%d%d%d", &a, &b, &c)) | |
{ | |
if (a == 0 && b == 0 && c == 0) break; |
This file contains 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() | |
{ | |
auto T = 1; | |
auto n = 0, m = 0; | |
while (~scanf("%d%d", &n, &m)) | |
{ | |
if (n == 0 && m == 0) | |
{ |
This file contains 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> | |
#define TABLE_LENGTH 3 * 5 + 1 | |
int table[3][TABLE_LENGTH] = { | |
{ 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0 }, | |
{ 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0 }, | |
{ 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1 } | |
}; |
This file contains 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> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <sstream> | |
#include <iostream> | |
#include <vector> | |
#define MAX_A_DIGIT 10 | |
#define MAX_A_DIGIT_POWER_2 1024 | |
#define TOLERANCE 0.00001 |
This file contains 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> | |
#include <string.h> | |
#include <algorithm> | |
auto masterLen = 0, drivenLen = 0; | |
int masterSection[101], drivenSection[101]; | |
bool IsDriftingDrivenSectionMatchMasterSection(int offset) | |
{ | |
for (auto i = 0; i < drivenLen; i++) |
This file contains 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> | |
#include <string.h> | |
using namespace std; | |
int main() | |
{ | |
char s[1000], t; | |
while (~scanf("%s", s)) |
OlderNewer