結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-30 20:48:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 25,984 KB |
| 最終ジャッジ日時 | 2025-02-09 02:46:20 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
main.cpp:1:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
1 | main() {
| ^~~~
ソースコード
main() {
int N;
__builtin_scanf("%d", &N);
char c = char(60);
while (N--) {
int a, b;
__builtin_scanf("%d %d", &a, &b);
if (!(a / b)) __builtin_printf("%c\n", c);
else if (!(b / a)) __builtin_printf("%c\n", c + 2);
else __builtin_printf("%c\n", c + 1);
}
}