結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
notetonous
|
| 提出日時 | 2016-04-19 15:15:48 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 127 bytes |
| コンパイル時間 | 689 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 14:06:09 |
| 合計ジャッジ時間 | 1,076 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&N);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N%2==1)printf("%d\n",N);
else printf("%d",N/2);
return 0;
}
notetonous