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
| void main() { | |
| int year = getFromConsole!int("作るカレンダーは何年のもの?"); | |
| int month = getFromConsole!int("何月のもの?"); | |
| auto initDate = DateTime(year, month, 1); | |
| if(!isWeekDay(initDate)) initDate = nextWeekDay(initDate); | |
| auto plans = genPlan(initDate); | |
| auto csv = genCSV(plans); |
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 "HID-Project.h" | |
| #define KEY_1 2 | |
| #define KEY_2 3 | |
| #define KEY_3 4 | |
| #define KEY_4 5 | |
| #define KEY_5 6 | |
| #define KEY_6 7 | |
| #define KEY_7 8 | |
| #define KEY_START 9 |
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 main(string[] args) { | |
| if(args.length < 2) { | |
| stderr.writeln("Usage: readas <amount> <names...> <listname>"); | |
| return 1; | |
| } | |
| auto N = args[1].to!ulong; | |
| auto names = args[2..2+N]; | |
| string listname = "ip"; | |
| if(args.length > 2+N) listname = args[2+N]; | |
| string res = "auto "; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 QtQuick 2.12 | |
| import QtQuick.Window 2.12 | |
| import QtQuick.Controls 2.12 | |
| import QtQuick.Controls.Material 2.12 | |
| import QtQuick.Layouts 1.3 | |
| import Qt.labs.settings 1.0 | |
| ApplicationWindow { | |
| visible: true | |
| width: 640 |
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
| void main() { | |
| auto N = readAs!ulong; | |
| auto divs = getDivisors(N).sort.array; | |
| ulong cnt; | |
| import std.datetime.stopwatch: StopWatch; | |
| // Measure the duration they required to solve the problems | |
| StopWatch sw; | |
| sw.start; |
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
| #!/usr/bin/env node | |
| // Requirement: node-fetch(npm installしてください) | |
| const fetch = require('node-fetch') | |
| const userId = process.argv[2] | |
| if(!userId) { | |
| console.error('id not specified') | |
| process.exit(1) | |
| } |
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
| for f in (ls *.txt | sed -e "s/.txt//g") | |
| mv $f.txt $f.csv | |
| end |
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 std.stdio, std.string, std.conv, std.algorithm, std.container, std.range, std.net.curl, std.json; | |
| const URL = "https://kenkoooo.com/atcoder/atcoder-api/results"; | |
| const ABC_CONTEST_COUNT = 103; | |
| string rivals_string(string[] rivals) { | |
| if(!rivals) return ""; | |
| string res = "&rivals="; | |
| foreach(i, v; rivals) { | |
| if(i == rivals.length-1) { |
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
| 66037 66041 66047 66067 66071 66083 66089 66103 66107 66109 66137 66161 66169 66173 66179 66191 66221 66239 66271 66293 66301 66337 66343 66347 66359 66361 66373 66377 66383 66403 66413 66431 66449 66457 66463 66467 66491 66499 66509 66523 66529 66533 66541 66553 66569 66571 66587 66593 66601 66617 66629 66643 66653 66683 66697 66701 66713 66721 66733 66739 66749 66751 66763 66791 66797 66809 66821 66841 66851 66853 66863 66877 66883 66889 66919 66923 66931 66943 66947 66949 66959 66973 66977 67003 67021 67033 67043 67049 67057 67061 67073 67079 67103 67121 67129 67139 67141 67153 67157 67169 67181 67187 67189 67211 67213 67217 67219 67231 67247 67261 67271 67273 67289 67307 67339 67343 67349 67369 67391 67399 67409 67411 67421 67427 67429 67433 67447 67453 67477 67481 67489 67493 67499 67511 67523 67531 67537 67547 67559 67567 67577 67579 67589 67601 67607 67619 67631 67651 67679 67699 67709 67723 67733 67741 67751 67757 67759 67763 67777 67783 67789 67801 67807 67819 67829 67843 67853 67867 67883 67891 6790 |