結果
| 問題 | No.58 イカサマなサイコロ |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-07-29 18:12:07 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 450 ms / 5,000 ms |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 30,152 KB |
| 最終ジャッジ日時 | 2026-02-23 22:10:05 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | x,i,j,k,s,t;main(n){for(scanf("%d%d",&n,&k);i++<1e6;s+=t>0)for(t=j=0;j<n;t-=rand()%6-rand()%x+x-6)x=j++<k?3:6;i=!printf("%f",s/1e6);}
| ^
main.c: In function ‘main’:
main.c:1:25: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | x,i,j,k,s,t;main(n){for(scanf("%d%d",&n,&k);i++<1e6;s+=t>0)for(t=j=0;j<n;t-=rand()%6-rand()%x+x-6)x=j++<k?3:6;i=!printf("%f",s/1e6);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | x,i,j,k,s,t;main(n){for(scanf("%d%d",&n,&k);i++<1e6;s+=t>0)for(t=j=0;j<n;t-=rand()%6-rand()%x+x-6)x=j++<k?3:6;i=!printf("%f",s/1e6);}
main.c:1:114: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | x,i,j,k,s,t;main(n){for(scanf("%d%d",&n,&k);i++<1e6;s+=t>0)for(t=j=0;j<n;t-=rand()%6-rand()%x+x-6)x=j++<k?3:6;i=!printf("%f",s/1e6);}
| ^~~~~~
main.c:1:114: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
x,i,j,k,s,t;main(n){for(scanf("%d%d",&n,&k);i++<1e6;s+=t>0)for(t=j=0;j<n;t-=rand()%6-rand()%x+x-6)x=j++<k?3:6;i=!printf("%f",s/1e6);}
testestest