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
Show hidden characters
{ | |
"presets": ["es2015"] | |
} |
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
import React from 'react'; | |
import injectStyle from './path/to/injectStyle'; | |
export default class SampleComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
const keyframesStyle = ` | |
@-webkit-keyframes pulse { | |
0% { background-color: #fecd6d; } |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_A | |
// Test case | |
// 6 | |
// 5 2 4 6 1 3 | |
var input = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n'); | |
var n = +input.shift(); | |
var nums = input.shift().split(' ').map(Number); |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_B | |
// Test Case | |
// 54 20 => 2 | |
// 147 105 => 21 | |
var input = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split(' ').map(Number); | |
function gcd(x, y) { | |
if (y === 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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_C | |
// Test Case | |
// 5 | |
// 2 | |
// 3 | |
// 4 | |
// 5 | |
// 6 | |
// => 3 |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_D | |
// Test Case | |
// 6 | |
// 2 | |
// 3 | |
// 1 | |
// 3 | |
// 4 | |
// 3 |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_A | |
// Test Case | |
// Input | |
// 6 | |
// 5 2 4 6 1 3 | |
// Output | |
// 1 2 3 4 5 6 | |
// 9 |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_B | |
// Test Case | |
// Input | |
// 6 | |
// 5 2 4 6 1 3 | |
// Output | |
// 1 2 3 4 5 6 | |
// 3 |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_C | |
// Test Case | |
// Input | |
// 5 | |
// H4 C9 S4 D2 C3 | |
// Output | |
// D2 C3 H4 S4 C9 | |
// Stable |
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
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_D | |
// Test Case | |
// Input | |
// 5 | |
// 5 | |
// 1 | |
// 4 | |
// 3 | |
// 2 |
OlderNewer