結果
| 問題 | No.292 芸名 | 
| コンテスト | |
| ユーザー |  mosmos_21 | 
| 提出日時 | 2016-10-19 23:34:41 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 222 bytes | 
| コンパイル時間 | 179 ms | 
| コンパイル使用メモリ | 20,608 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-23 05:39:14 | 
| 合計ジャッジ時間 | 777 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%s%d%d", s, &a, &b);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
  int i=0, a, b;
  char s[51];
  scanf("%s%d%d", s, &a, &b);
  s[a] = 1; s[b] = 1;
  while(s[i]){
    if(s[i]!=1){
      printf("%c", s[i]);
    }
    i++;
  }
  printf("\n");
  return 0;
}
            
            
            
        