結果
問題 | No.175 simpleDNA |
ユーザー | suppy193 |
提出日時 | 2015-05-28 09:41:16 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 23,604 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-20 17:04:42 |
合計ジャッジ時間 | 792 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 0 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 0 ms
4,376 KB |
testcase_04 | AC | 0 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 0 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,376 KB |
ソースコード
#include <stdio.h> int main(void) { int i, L, N, length; int ans; char S[31]; scanf("%d", &L); scanf("%d", &N); for(i = 1;i <= N;i++){ scanf("%s", S); } length = 0; while(S[length] != '\0'){ length++; } ans = 1; for(i = 1;i <= L - length;i++){ ans *= 2; } printf("%d\n", ans * N); return 0; }