結果
問題 |
No.111 あばばばば
|
ユーザー |
|
提出日時 | 2016-02-05 21:09:06 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 20:41:44 |
合計ジャッジ時間 | 1,173 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&l); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int l; scanf("%d",&l); l=(l-1)/2; if (l<=0) printf("1"); else printf("%d",l*(l+1)/2+l*(l-1)/2); return 0; }