結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2015-04-02 23:23:55 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 144 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 23:42:50 |
合計ジャッジ時間 | 570 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d %d",&L,&N); | ~~~~~^~~~~~~~~~~~~~~ main.cpp:6:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | for(int i=0;i<N;i++) scanf("%s",S); | ~~~~~^~~~~~~~
ソースコード
#include <cstdio>char S[10];int main() {int L,N;scanf("%d %d",&L,&N);for(int i=0;i<N;i++) scanf("%s",S);printf("%d\n",(1<<(L-3))*N);}