結果
問題 | No.292 芸名 |
ユーザー | subsn |
提出日時 | 2023-06-15 15:12:05 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 130 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 15:05:08 |
合計ジャッジ時間 | 861 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,812 KB |
testcase_01 | AC | 1 ms
6,940 KB |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | AC | 1 ms
6,944 KB |
testcase_04 | AC | 1 ms
6,944 KB |
testcase_05 | AC | 1 ms
6,944 KB |
testcase_06 | AC | 1 ms
6,940 KB |
testcase_07 | AC | 1 ms
6,944 KB |
testcase_08 | AC | 1 ms
6,940 KB |
testcase_09 | AC | 1 ms
6,940 KB |
testcase_10 | AC | 1 ms
6,944 KB |
testcase_11 | AC | 1 ms
6,940 KB |
testcase_12 | AC | 1 ms
6,944 KB |
コンパイルメッセージ
main.c: In function 'main': main.c:1:5: warning: type of 'a' defaults to 'int' [-Wimplicit-int] 1 | int main(a,b,i) | ^~~~ main.c:1:5: warning: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:4:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 4 | scanf("%s %d %d",&s,&a,&b); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(a,b,i) main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 4 | scanf("%s %d %d",&s,&a,&b); | ^~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:5:19: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 5 | for(i=0;i<strlen(s);i++)if(i!=a&&i!=b)printf("%c",s[i]); | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | int main(a,b,i) main.c:5:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 5 | for(i=0;i<strlen(s);i++)if(i!=a&&i!=b)printf("%c",s[i]); | ^~~~~~ main.c:5:19: note: include '<string.h>' or provide a declaration of 'strlen' main.c:5:47: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 5 | for(i=0;i<strlen(s);i++)if(i!=a&&i!=b)printf("%c",s[i]); | ^~~~~~ main.c:5:47: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:5:47: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:5:47: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:6:9: warning: implicit declaration of f
ソースコード
int main(a,b,i) { char s[51]; scanf("%s %d %d",&s,&a,&b); for(i=0;i<strlen(s);i++)if(i!=a&&i!=b)printf("%c",s[i]); puts(""); }