結果

問題 No.1129 Rating じゃんけん
ユーザー suppy193
提出日時 2021-05-01 20:07:27
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-20 03:25:13
合計ジャッジ時間 1,481 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
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("%d%d%d%d", &a, &b, &c, &d);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void) {

    int a, b, c ,d;
	scanf("%d%d%d%d", &a, &b, &c, &d);
	if(a != c){
		if(a > c){
			printf("null");
		}
		else {
			printf("tRue");
		}
	}
	else{
		if(b != d){
			if(b - d == 2 || b - d == -1){
				printf("null");
			}
			else{
				printf("tRue");
			}
		}
		else{
			printf("Draw");
		}
	}
	printf("\n");
	return 0;
}
0