結果
問題 | No.35 タイパー高橋 |
ユーザー | testestest |
提出日時 | 2015-08-07 14:22:58 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 132 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 04:53:55 |
合計ジャッジ時間 | 544 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,812 KB |
testcase_01 | AC | 1 ms
6,944 KB |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | AC | 1 ms
6,944 KB |
コンパイルメッセージ
main.c:1:13: warning: data definition has no type or storage class 1 | char a[101];n,s,m,t;main(c){ | ^ main.c:1:13: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | char a[101];n,s,m,t;main(c){ | ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | char a[101];n,s,m,t;main(c){ | ^ main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 1 | char a[101];n,s,m,t;main(c){ | ^ main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char a[101];n,s,m,t;main(c){ | ^~~~ main.c: In function ‘main’: main.c:1:21: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int] main.c:2:5: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 2 | for(gets(a);~scanf("%d%s",&t,a);t=t*.012,s+=t>c?c:t,m+=c,c=0)while(a[++c]); | ^~~~ main.c:2:14: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 2 | for(gets(a);~scanf("%d%s",&t,a);t=t*.012,s+=t>c?c:t,m+=c,c=0)while(a[++c]); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | char a[101];n,s,m,t;main(c){ main.c:2:14: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 2 | for(gets(a);~scanf("%d%s",&t,a);t=t*.012,s+=t>c?c:t,m+=c,c=0)while(a[++c]); | ^~~~~ main.c:2:14: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:3:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 3 | n=!printf("%d %d",s,m-s); | ^~~~~~ main.c:3:4: note: include ‘<stdio.h>
ソースコード
char a[101];n,s,m,t;main(c){ for(gets(a);~scanf("%d%s",&t,a);t=t*.012,s+=t>c?c:t,m+=c,c=0)while(a[++c]); n=!printf("%d %d",s,m-s); }