結果
| 問題 |
No.292 芸名
|
| コンテスト | |
| ユーザー |
Elk
|
| 提出日時 | 2018-05-24 23:51:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 23,040 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 17:35:04 |
| 合計ジャッジ時間 | 767 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s %d %d", str, &t, &u);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
int main(){
char str[100];
int i, t, u, len;
scanf("%s %d %d", str, &t, &u);
//printf("%d %d\n", t, u);
len = strlen(str);
for(i = 0; i < len; i++){
if(i != t && i != u){
printf("%c", str[i]);
}
}
printf("\n");
return 0;
}
Elk