結果

問題 No.676 C0nvertPr0b1em
ユーザー Eclair1015
提出日時 2018-05-07 14:02:03
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 12:42:16
合計ジャッジ時間 1,002 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
int main(){
	char conv[1001];
	int i;
	
	fgets(conv,1001,stdin);
	
	for(i=0;i<strlen(conv);i++){
		if(conv[i]=='l'||conv[i]=='I')
			conv[i]='1';
		if(conv[i]=='o'||conv[i]=='O')
			conv[i]='0';
	}
	
	printf("%s",conv);
	
	return 0;
}
0