結果
問題 |
No.111 あばばばば
|
ユーザー |
![]() |
提出日時 | 2025-03-06 11:14:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 26,624 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-06 11:14:30 |
合計ジャッジ時間 | 1,445 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%ld", &len); | ~~~~~^~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ long len = 0; long ans = 0; scanf("%ld", &len); ans = (len - 1) / 2; ans*=ans; printf("%ld", ans); return 0; }