結果
| 問題 | 
                            No.201 yukicoderじゃんけん
                             | 
                    
| コンテスト | |
| ユーザー | 
                             yamaken1343
                         | 
                    
| 提出日時 | 2015-11-11 22:33:22 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 276 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 20,480 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-13 14:27:07 | 
| 合計ジャッジ時間 | 821 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 WA * 14 | 
コンパイルメッセージ
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%lld%s",a,&a1,x);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%s%lld%s",b,&b1,y);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main(void){
	char a[100],b[100];
	char x[10],y[10];
	long long a1,b1;
	scanf("%s%lld%s",a,&a1,x);
	scanf("%s%lld%s",b,&b1,y);
	if(a1 == b1){
		printf("-1\n");
	}else if(a1 > b1){
		printf("%s\n",a);
	}else if(b1 > a1){
		printf("%s\n",b);
	}
	return 0;
}
            
            
            
        
            
yamaken1343