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 <algorithm> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <cmath> | |
| using namespace std; | |
| const double eps = 1e-8; | |
| int cmp(double x) { |
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 <algorithm> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <cmath> | |
| using namespace std; | |
| const double eps = 1e-8; | |
| int cmp(double x) { |
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> | |
| #include <vector> | |
| #include <algorithm> | |
| int main() | |
| { | |
| std::vector<int> a{1, 2, 3, 4, 5, 6}; | |
| do { | |
| std::cout << a[0] << a[1] << a[2] << a[3] << a[4] << a[5] << std::endl; |
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 urllib.request | |
| import urllib.parse | |
| import http.cookiejar | |
| cookiejar = http.cookiejar.CookieJar() | |
| opener = urllib.request.build_opener( | |
| urllib.request.HTTPCookieProcessor(cookiejar)) | |
| dhu_url = "http://jw.dhu.edu.cn/dhu/login_zh.jsp" | |
| login_data = urllib.parse.urlencode({'userName': '', 'userPwd': ''}) | |
| login_data = login_data.encode('utf-8') |
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(void) | |
| { | |
| int h, m, s; | |
| int t_h, t_m, t_s; | |
| int i, n; | |
| while (scanf("%d", &n) != EOF) | |
| for (i = 0; i < n; ++i) { | |
| scanf("%d%d%d%d%d%d", |
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
| [ | |
| { | |
| "name": "Sunpinyin", | |
| "locale": "zh", | |
| "version": "0.3.4", | |
| "license": "LGPL", | |
| "website": "http://code.google.com/p/sunpinyin" | |
| }, | |
| { | |
| "name": "foobar", |
NewerOlder