結果
| 問題 | 
                            No.668 6.0*10^23
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  testestest
                         | 
                    
| 提出日時 | 2018-05-15 12:57:39 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 114 bytes | 
| コンパイル時間 | 717 ms | 
| コンパイル使用メモリ | 28,672 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-30 06:44:22 | 
| 合計ジャッジ時間 | 3,302 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 46 WA * 4 | 
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:15: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
      |               ^~~~
main.c: In function 'main':
main.c:1:15: warning: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:1:28: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
      |                            ^~~~
main.c:1:67: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
      |                                                                   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
            
            ソースコード
c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<4?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.949?s/=10,c-1:c-2);}
            
            
            
        
            
testestest