結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2025-03-06 14:56:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 26,880 KB |
実行使用メモリ | 8,612 KB |
最終ジャッジ日時 | 2025-03-06 14:56:08 |
合計ジャッジ時間 | 1,627 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 11 WA * 9 |
コンパイルメッセージ
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){ printf("YES"); }else{ printf("NO"); } }