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
// ==UserScript== | |
// @name Apollo Displayer | |
// @namespace http://knightzone.studio | |
// @version 0.1 | |
// @description try to do the chart of the apollo | |
// @author Maplewing | |
// @match https://apollo.mayohr.com/ta/personal/checkin/checkinrecords/workrecords | |
// @grant none | |
// ==/UserScript== |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Sample</title> | |
<style> | |
body{ | |
text-align: center; | |
} |
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 <iostream> | |
using namespace std; | |
int main(){ | |
string a = "ABCDEFG"; | |
cout << a << endl; | |
cout << "a" << endl; | |
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 f(int n){ | |
if( n == 0 ){ | |
return 0; | |
} | |
else if( n == 1 ){ | |
return 1; | |
} | |
else { |
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(){ | |
char inputFilename[80]; | |
char outputFilename[80]; | |
scanf("%s", inputFilename); | |
scanf("%s", outputFilename); | |
/* |
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 "student.h" | |
int maxScore(int n, Student *students){ | |
int max = 0; | |
int i; | |
for( i = 1 ; i < n ; i++ ){ | |
if( students[i].chinese + | |
students[i].english + | |
students[i].math > | |
students[max].chinese + |
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> | |
typedef struct{ | |
char name[80]; | |
int chineseScore; | |
int englishScore; | |
int mathScore; | |
int age; | |
int blood; // A: 1, B: 2, AB: 3, O: 4 | |
} Student; |
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> | |
void swap(int *a, int *b){ | |
int temp = *a; | |
*a = *b; | |
*b = temp; | |
} | |
int main(){ | |
int a, 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
int sum(int n); |
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
int sum(int n){ | |
int total = 0; // (x) int sum = 0; | |
int i; | |
for( i = 1 ; i <= n ; i++ ){ | |
total += i; | |
} | |
return total; | |
} |
NewerOlder