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> | |
#include <fstream> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; | |
struct Point{ | |
double x; |
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> | |
#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> | |
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> | |
#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> | |
#include <iostream> | |
#define COMMON_MULTIPLE 21252 + 365 | |
#define MAX_LEN_CYCLE COMMON_MULTIPLE + 1 | |
using namespace std; | |
int cycleTable[MAX_LEN_CYCLE] = { 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> | |
int main() | |
{ | |
auto physical = 0, emotional = 0, intellectual = 0, dayAlreadyPassed = 0, T = 1; | |
while (~scanf("%d%d%d%d", &physical, &emotional, &intellectual, &dayAlreadyPassed)) | |
{ | |
if (physical == -1 && emotional == -1 && intellectual == -1 && dayAlreadyPassed == -1) break; | |
physical %= 23; |
OlderNewer