βshortの自堕落Diary

web関係や、プログラミングなどを扱う予定です。プランなど立てていないので、不定期投稿になります。

AOJ

AOJ ITP1_4

AOJ

ITP1_4_A:A/B Problem合ってない・・・ s=input().rstrip().split() a=int(s[0]) b=int(s[1]) print(a//b,a%b,a/b) ITP1_4_B:Circle import math r=float(input()) print(r**2*math.pi,r*2*math.pi) ITP1_4_C:Simple Calculator while True: s=input().rstri…

AOJ ITP1_3

AOJ

AOJ ITP1_3 AOJ ITP1_3 ITP1_3_A:Print Many Hello World ITP1_3_B:Print Test Cases ITP1_3_C:Swapping Two Numbers ITP1_3_D:How Many Divisors? ITP1_3_A:Print Many Hello World for i in range(1000): print("Hello World") ITP1_3_B:Print Test Cases …

AOJ ITP1_2

AOJ

AOJ ITP1_2雑にメモを取っていきます。 テキトーに書いているので、意味わからない処理があると思いますが、AOJには成功しています。 AOJ ITP1_2 ITP1_2_A:Small, Large, or Equal ITP1_2_B:Range ITP1_2_C:Sorting Three Numbers ITP1_2_D:Circle in a Rect…

AOJ ITP1_1

AOJ

AOJ ITP1_1雑なプログラムですが、AOJで成功しています。 編集等もしていけたらです。 AOJ ITP1_1 ITP1_1_A:Hello World ITP1_1_B:X Cubic ITP1_1_C:Rectangle ITP1_1_D:Watch ITP1_1_A:Hello World print("Hello World") ITP1_1_B:X Cubic s=int(input()) p…

AOJ0000〜0009

AOJ

AIZU ONLINE JUDGE 0000〜0009更新中です。0000:QQ九九を表示するプログラム。 for i in range(9): i=i+1 for j in range(9): j=j+1 print(str(i)+'x'+str(j)+'='+str(i*j)) 0001:List of Top 3 Hills数の並び替えを行い、上位3位を出力 s=[] for i in rang…