結果
| 問題 | No.53 悪の漸化式 |
| コンテスト | |
| ユーザー |
TLwiegehtt
|
| 提出日時 | 2015-07-18 21:49:10 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 157 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 20,736 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-08 10:12:50 |
| 合計ジャッジ時間 | 993 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
int i,n;
double b = 4;
scanf("%d", &n);
for(i=0;i<n;i++){
b = b / 4 * 3;
}
printf("%.15f\n", b);
return 0;
}
TLwiegehtt