結果

問題 No.389 ロジックパズルの組み合わせ
コンテスト
ユーザー 👑 tails
提出日時 2017-11-16 00:42:42
言語 cLay
(20250308-1 + boost 1.89.0)
コンパイル:
clayc _filename_
実行:
./a.out
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 91 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,942 ms
コンパイル使用メモリ 192,024 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2026-03-26 21:36:21
合計ジャッジ時間 4,887 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 #
raw source code

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