LoginSignup
0
0

More than 1 year has passed since last update.

文系エンジニア(志望)の振り返り-at coder

Posted at

1.qiitaアカウント設立の目的と投稿理由

様々なところで、「エンジニアたるものアウトプットが必須」とのご意見をいただいたため。
また、自分の学習内容のメモとしても利用。
初心者であるため、これまでの学習内容で詰まりがちであった内容を整理のため。
ひとまず、当記事ではatcoderの初心者問題のB問題のコードを掲載

2.学習内容、投稿コンテンツについて

現在はpythonの学習と並行して、統計学の学習を行っている。投稿としては主としてその辺。見られることはあまり想定していない。

3 atcoderについて

役に立たないとの声も多いが、初心者〜初級者の間の人間の学習コンテンツとしては最適であるように感じる

ABC081B - Shift only

n=int(input())
a=list(map(int,input().split()))
count=0

flag = True
while flag:
    for i in a:
        if i%2 !=0:
            flag=False
            break

ABC081B Shift only

A=int(input())
B=int(input())
C=int(input())
X=int(input())
count=0
for a in range(A+1):
    for b in range(B+1):
        for c in range(C+1):
            if 500*a+100*b+50*c==X:
                count +=1
print(count)

ABC083B Some Sums

n,a,b=input().split()
count=0
for i in range(int(n)+1):
    i_s=str(i)
    array=list(map(int,i_s))
    sum_n=sum(array)
    if int(a)<=sum_n<=int(b):
        count += i
    else:
        pass
print(count)

ABC088B Card Game for Two

n=int(input())
list_b=sorted(list(map(int,input().split())),reverse=True)

count_a=0
count_b=0

for i in range(0,n,2):
    count_a += list_b[i]
for t in range(1,n,2):
    count_b += list_b[t]

print(count_a-count_b)

ABC085B Kagami Mochi

N, Y = map(int,input().split())
for x in range(N+1):
    for y in range(N-x+1):
        if 10000*x + 5000*y + 1000*(N-x-y) == Y:
            print(x,y,N-x-y)
            exit()
print(-1,-1,-1)

総評
とりあえずクリアはしたけれど、これでいいのか?というものが多い。

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