結果

問題 No.1469 programing
ユーザー Maeda
提出日時 2025-03-17 10:22:52
言語 C
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 224 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 24,704 KB
実行使用メモリ 9,760 KB
最終ジャッジ日時 2025-03-17 10:23:02
合計ジャッジ時間 9,254 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 1 -- * 2
other -- * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%s",s);
      |         ^~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>
void main(void){
	char s[1000000] = "a";
	scanf("%s",s);
	int ans = 0;
	printf("%c",s[ans]);
	while(s[ans] != '\0'){
		if(s[ans] != s[ans+1]){
			printf("%c",s[ans]);
			ans++;
		}
	}
}
0