結果
| 問題 |
No.299 蟻本が読めない
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2016-10-18 21:49:42 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 183 bytes |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 12:50:49 |
| 合計ジャッジ時間 | 562 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%ld",&n);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void)
{
unsigned long n;
unsigned long t=316;
unsigned long i=1;
scanf("%ld",&n);
for(i;i<n;i++){
t+=52;
}
printf("%ld\n",t);
return 0;
}
Haijinn