結果
問題 | No.3032 Unavailability of Inequality Signs |
ユーザー | square1001 |
提出日時 | 2018-04-01 22:18:39 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 27,116 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-08 12:37:39 |
合計ジャッジ時間 | 911 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 0 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,376 KB |
コンパイルメッセージ
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:6:20: 警告: 関数 ‘abs’ の暗黙的な宣言です [-Wimplicit-function-declaration] 6 | if(abs(b) != b) putchar(62); | ^~~ main.c:1:1: 備考: include ‘<stdlib.h>’ or provide a declaration of ‘abs’ +++ |+#include <stdlib.h> 1 | int n, a, b; main.c:6:33: 警告: 関数 ‘putchar’ の暗黙的な宣言です [-Wimplicit-function-declaration] 6 | if(abs(b) != b) putchar(62); | ^~~~~~~ main.c:6:33: 備考: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
ソースコード
int n, a, b; int main() { scanf("%d", &n); while(n--) { scanf("%d %d", &a, &b); b -= a; if(abs(b) != b) putchar(62); else if(b) putchar(60); else putchar(61); putchar('\n'); } }