結果
問題 | No.10 +か×か |
ユーザー | 👑 testestest |
提出日時 | 2016-02-26 13:48:53 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 78 ms / 5,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 48,256 KB |
最終ジャッジ日時 | 2024-05-08 11:50:37 |
合計ジャッジ時間 | 841 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 1 ms
6,944 KB |
testcase_02 | AC | 1 ms
6,940 KB |
testcase_03 | AC | 68 ms
46,336 KB |
testcase_04 | AC | 2 ms
6,944 KB |
testcase_05 | AC | 2 ms
6,944 KB |
testcase_06 | AC | 78 ms
48,256 KB |
testcase_07 | AC | 5 ms
6,944 KB |
testcase_08 | AC | 11 ms
9,984 KB |
testcase_09 | AC | 18 ms
16,128 KB |
testcase_10 | AC | 1 ms
6,944 KB |
testcase_11 | AC | 1 ms
6,940 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] 1 | x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);} | ^ main.c:1:21: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);} | ^ main.c:1:23: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);} | ^ main.c:1:36: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);} | ^ main.c: In function ‘f’: main.c:1:36: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:36: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] main.c:1:119: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 1 | x[60][999999],a[60],m,i;char p[60];f(i,s)
ソースコード
x[60][999999],a[60],m,i;char p[60];f(i,s){a[i]|s-m?s>m|!a[i]|x[i][s]++?0:(p[i]=43,f(i+1,s+a[i]),p[i]--,f(i+1,s*a[i])):exit(!puts(p+1));}main(){for(scanf("%*d%d",&m);~scanf("%d",a+i++););f(1,*a);}