結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
ushjp
|
| 提出日時 | 2015-03-24 16:38:53 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 95 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 28,616 KB |
| 最終ジャッジ日時 | 2026-02-23 18:13:10 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:25: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | long long h,n,k;main(w){scanf("%lld%d%lld%lld",&h,&w,&n,&k);h=!puts((h*w-1)%n-k+1?"NO":"YES");}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | long long h,n,k;main(w){scanf("%lld%d%lld%lld",&h,&w,&n,&k);h=!puts((h*w-1)%n-k+1?"NO":"YES");}
ソースコード
long long h,n,k;main(w){scanf("%lld%d%lld%lld",&h,&w,&n,&k);h=!puts((h*w-1)%n-k+1?"NO":"YES");}
ushjp