結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2017-03-13 17:05:03 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 124 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 00:39:11 |
合計ジャッジ時間 | 864 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:11:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] 11 | scanf("%d %d %d %d",&h,&w,&n,&k); | ~^ ~~ | | | | int * long long int * | %lld main.c:11:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] 11 | scanf("%d %d %d %d",&h,&w,&n,&k); | ~^ ~~ | | | | int * long long int * | %lld main.c:11:23: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long int *’ [-Wformat=] 11 | scanf("%d %d %d %d",&h,&w,&n,&k); | ~^ ~~ | | | | int * long long int * | %lld main.c:11:26: warning: format ‘%d’ expects argument of type ‘int *’, but argument 5 has type ‘long long int *’ [-Wformat=] 11 | scanf("%d %d %d %d",&h,&w,&n,&k); | ~^ ~~ | | | | int * long long int * | %lld main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d %d %d %d",&h,&w,&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { long long int h,w,n,k,masu; scanf("%d %d %d %d",&h,&w,&n,&k); if( (h*w-1)%n+1 == k ) printf("YES"); else printf("NO"); return 0; }