結果
| 問題 | No.23 技の選択 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-11-15 12:59:49 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 38µs | |
| コード長 | 119 bytes |
| 記録 | |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 30,020 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-10 14:27:18 |
| 合計ジャッジ時間 | 2,096 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a,b,c,n,i;main(t){scanf("%d%d%d",&a,&b,&c);for(;a>-b;n=n&&n<t?n:t,a-=b)t=(a+c-1)/c*3*(a>0)+i++*2;n=!printf("%f",n/2.);}
| ^
main.c: In function ‘main’:
main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | a,b,c,n,i;main(t){scanf("%d%d%d",&a,&b,&c);for(;a>-b;n=n&&n<t?n:t,a-=b)t=(a+c-1)/c*3*(a>0)+i++*2;n=!printf("%f",n/2.);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | a,b,c,n,i;main(t){scanf("%d%d%d",&a,&b,&c);for(;a>-b;n=n&&n<t?n:t,a-=b)t=(a+c-1)/c*3*(a>0)+i++*2;n=!printf("%f",n/2.);}
main.c:1:101: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | a,b,c,n,i;main(t){scanf("%d%d%d",&a,&b,&c);for(;a>-b;n=n&&n<t?n:t,a-=b)t=(a+c-1)/c*3*(a>0)+i++*2;n=!printf("%f",n/2.);}
| ^~~~~~
main.c:1:101: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
a,b,c,n,i;main(t){scanf("%d%d%d",&a,&b,&c);for(;a>-b;n=n&&n<t?n:t,a-=b)t=(a+c-1)/c*3*(a>0)+i++*2;n=!printf("%f",n/2.);}
testestest