結果
問題 | No.1893 Cycle |
ユーザー |
![]() |
提出日時 | 2022-12-26 22:23:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 09:02:28 |
合計ジャッジ時間 | 1,078 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d %d\n", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int x, y, z; scanf("%d %d\n", &x, &y); z = x+4 >= 12 ? x-8 : x+4; if(z != y) printf("%d\n", z); else printf("%d\n", x-4); return 0; }