結果

問題 No.80 四角形を描こう
ユーザー Konton7Konton7
提出日時 2019-05-15 23:58:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 102 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-10-12 19:01:29
合計ジャッジ時間 1,274 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,912 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,820 KB
testcase_06 AC 15 ms
7,848 KB
testcase_07 AC 15 ms
7,992 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

base = n // 4
if base % 4 >= 2:
    print(base*(base+1))
else:
    print(base*base)
0