結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2016-07-03 12:46:45 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 187 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 03:52:08 |
合計ジャッジ時間 | 1,034 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld%lld%lld%lld", &h, &w, &n, &k); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main() {long long int h, w, n, k;scanf("%lld%lld%lld%lld", &h, &w, &n, &k);h--; w--; k--;printf("%s\n", (h + w) % n == k ? "YES" : "NO");return 0;}