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
(defparameter *coins* `(1 5 10 50 100 500)) | |
(defparameter *have-coins* `(3 2 1 3 0 2)) | |
(defparameter *sum* 620) | |
(defun calc (index sum answer) | |
(let* ((number (min (floor sum (nth index *coins*)) (nth index *have-coins*))) | |
(new-sum (- sum (* number (nth index *coins*)))) | |
(new-answer (+ answer number))) | |
(values new-sum new-answer))) |
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
precision mediump float; | |
uniform float t; // time | |
uniform vec2 r; // resolution | |
const float PI = 3.1415926; | |
const vec3 red = vec3(1.0, 0.0, 0.0); | |
const vec3 yellow = vec3(1.0, 1.0, 0.2); | |
const vec3 white = vec3(1.0); | |
const vec3 black = vec3(0.15, 0.15, 0.15); | |
const vec3 gray = vec3(0.4, 0.4, 0.4); |
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
<?php | |
declare(strict_types = 1); | |
namespace Hoge; | |
class FetchBanks | |
{ | |
/** | |
* Execute the console command. | |
* |
NewerOlder