結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー square1001square1001
提出日時 2018-04-01 22:16:10
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 198 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 26,908 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-09-08 12:37:17
合計ジャッジ時間 12,617 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,084 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 AC 1,378 ms
4,380 KB
testcase_08 TLE -
testcase_09 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:3:9: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | int n, a, b;
main.c:3:9: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:3:9: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:7:23: 警告: 関数 ‘putchar’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    7 |                 if(a) putchar(62);
      |                       ^~~~~~~
main.c:7:23: 備考: include ‘<stdio.h>’ or provide a declaration of ‘putchar’

ソースコード

diff #

int n, a, b;
int main() {
	scanf("%d", &n);
	while(n--) {
		scanf("%d %d", &a, &b);
		while(a && b) a--, b--;
		if(a) putchar(62);
		else if(b) putchar(60);
		else putchar(61);
		putchar('\n');
	}
}
0