結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
|
提出日時 | 2016-07-07 21:24:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-10-12 23:22:02 |
合計ジャッジ時間 | 809 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%lf %lf %lf %lf", &h, &w, &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int c; double h, w, n, k; scanf("%lf %lf %lf %lf", &h, &w, &n, &k); c = (int)(h + w - 1) % (int)n; if(c == k || c == 0) printf("YES\n"); else printf("NO\n"); return 0; }