結果
| 問題 | No.3019 YNeos | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-18 14:20:02 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 387 bytes | 
| コンパイル時間 | 346 ms | 
| コンパイル使用メモリ | 25,344 KB | 
| 実行使用メモリ | 7,328 KB | 
| 最終ジャッジ日時 | 2025-03-18 14:20:05 | 
| 合計ジャッジ時間 | 2,166 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 41 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%s",x);
      |         ^~~~~~~~~~~~~
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%s",y);
      |         ^~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#include <string.h>
void main(void) {
	char x[1000] = "a";
	scanf("%s",x);
	char y[1000] = "a";
	scanf("%s",y);
	if((int)strlen(x) - (int)strlen(y) != 0 && (int)strlen(x) - (int)strlen(y) != 1){
		printf("?");
	}else{
		for(int i = 0 ; i < (int)strlen(x);i++){
			if(x[i] != '\0'){
				printf("%c",x[i]);
			}
			if(y[i] != '\0'){
				printf("%c",y[i]);
			}
		}
	}
}
            
            
            
        