結果

問題 No.80 四角形を描こう
ユーザー titiatitia
提出日時 2021-02-07 00:32:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 80 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-09-16 11:53:05
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,968 KB
testcase_01 AC 15 ms
7,744 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,820 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,828 KB
testcase_06 AC 14 ms
7,900 KB
testcase_07 AC 15 ms
7,976 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,792 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

D=int(input())

x=D//4
D-=x*4

if x>=2:
    print(x*(x+1))
else:
    print(x*x)
0