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