結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2025-03-06 14:51:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 347 ms |
コンパイル使用メモリ | 26,880 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-06 14:51:55 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d",&ver,&hor); | ~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d",&num); | ~~~~~^~~~~~~~~~~ main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d",&k); | ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h> int main(){ // 縦横のマスの数 int ver,hor; scanf("%d%d",&ver,&hor); // 人数 int num = 0; scanf("%d",&num); // K番目の値 int k = 0; scanf("%d",&k); if((ver * hor) % num ==( k % num)){ printf("YES"); }else{ printf("NO"); } }