結果

問題 No.389 ロジックパズルの組み合わせ
ユーザー tails
提出日時 2017-11-16 00:42:42
言語 cLay
(20241019-1)
結果
AC  
実行時間 162 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 2,280 ms
コンパイル使用メモリ 172,616 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 12:47:14
合計ジャッジ時間 5,949 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 99
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:358:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
  358 |   printf(x?"%d":"NA",H=x);
      |             ~^       ~~~
      |              |        |
      |              int      long long int
      |             %lld

ソースコード

diff #

mint x;ll M,H,N;{rd(M);for(x=1;cin>>H;x/=++N)M-=H;x*=M+(2-N..!!H);printf(x?"%d":"NA",H=x);}
0