結果
問題 | No.8059 tan |
ユーザー |
|
提出日時 | 2020-03-10 23:59:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 27,008 KB |
最終ジャッジ日時 | 2025-01-09 06:07:11 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | int T; scanf("%d", &T); | ~~~~~^~~~~~~~~~ main.cpp:8:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | int xi; scanf("%d", &xi); | ~~~~~^~~~~~~~~~~
ソースコード
#include <cassert>#include <cstdio>int main(void) {int T; scanf("%d", &T);assert(1 <= T && T <= 90);for(int loop=0; loop<T; ++loop) {int xi; scanf("%d", &xi);assert(0 <= xi && xi < 90);puts((xi == 0 || xi == 45) ? "Y" : "N");}return 0;}