【Solidity】 8kyu 「Century From Year」解決
Solidity:
// SPDX-License-Identifier: BSD-2-Clause
pragma solidity ^0.8.16;
contract Kata {
function century(int year) public pure returns (int) {
int centry = year / 100;
if(year % 100 != 0){
centry++;
}
return centry;
}
}
intをletにしていた