LoginSignup
0
0

More than 1 year has passed since last update.

yukicoder contest 300 参戦記

Last updated at Posted at 2021-06-18

yukicoder contest 300 参戦記

A 1550 nullくんの町清掃 / null's Town Cleaning

問題文の通り、余りを求めればよい.

n = int(input())

print(n % 1000000007)

B 1551 誕生日の三角形

辺の長さが L / 3 の正三角形が答えなのは直感的に分かるので、後は面積の公式をググれば良い.

from math import sqrt

L = int(input())

print(L * L * sqrt(3) / 36)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0