結果

問題 No.73 helloworld
コンテスト
ユーザー testestest
提出日時 2015-08-12 23:00:10
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 161 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 145 ms
コンパイル使用メモリ 29,772 KB
最終ジャッジ日時 2026-02-23 19:15:54
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | a[26],p,t;main(q){
      | ^
main.c: In function ‘main’:
main.c:2:7: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    2 | for(;~scanf("%d",a+t++););
      |       ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | a[26],p,t;main(q){
main.c:4:4: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
    4 | p=!printf("%ld",1L*a[14]*a[14]/4*a[7]*a[4]*a[22]*a[17]*a[3]*p);
      |    ^~~~~~
main.c:4:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #
raw source code

a[26],p,t;main(q){
for(;~scanf("%d",a+t++););
for(q=a[11];q--;)p=p<(t=q*(q-1)/2*(a[11]-q))?t:p;
p=!printf("%ld",1L*a[14]*a[14]/4*a[7]*a[4]*a[22]*a[17]*a[3]*p);
}
0