I hereby claim:
- I am birdca on github.
- I am birdca (https://keybase.io/birdca) on keybase.
- I have a public key ASD597sm62032dboN2KnIOhyvK3trlRKc0J5Ma7tfvXDXQo
To claim this, I am signing this object:
/**********************************************************************************/ | |
/* Problem: a410 "解方程" from TYVJ */ | |
/* Language: C (552 Bytes) */ | |
/* Result: AC(0ms, 328KB) judge by this@ZeroJudge */ | |
/* Author: birdca at 2014-04-24 14:12:05 */ | |
/**********************************************************************************/ | |
#include <stdio.h> |
pragma solidity ^0.4.24; | |
contract Adoption { | |
address[16] public adopters; | |
// Adopting a pet | |
function adopt(uint petId) public returns (uint) { | |
require(petId >= 0 && petId <= 15); | |
adopters[petId] = msg.sender; |
var Adoption = artifacts.require("Adoption"); | |
module.exports = function(deployer) { | |
deployer.deploy(Adoption); | |
}; |
App = { | |
web3Provider: null, | |
contracts: {}, | |
init: async function() { | |
// Load pets. | |
$.getJSON('../pets.json', function(data) { | |
var petsRow = $('#petsRow'); | |
var petTemplate = $('#petTemplate'); |
I hereby claim:
To claim this, I am signing this object: