結果

問題 No.292 芸名
ユーザー Haijinn
提出日時 2018-02-15 16:49:54
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 20,864 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 03:02:50
合計ジャッジ時間 896 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 | scanf("%s",s);
      | ^~~~~~~~~~~~~
main.c:12:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 | scanf("%d%d",&t,&u);
      | ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>


int main(){
char s[51];
int t;
int u;
int i;

scanf("%s",s);
scanf("%d%d",&t,&u);

for(i=0;i<strlen(s);i++){
	if(i==t||i==u){
		continue;
		
	}
	printf("%c",s[i]);
	
}
printf("\n");
return 0;
}
0