結果
問題 | No.175 simpleDNA |
ユーザー | じゃがりこ |
提出日時 | 2018-08-31 20:19:28 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 28,412 KB |
実行使用メモリ | 4,356 KB |
最終ジャッジ日時 | 2023-10-11 22:53:56 |
合計ジャッジ時間 | 2,254 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
コンパイルメッセージ
main.c: 関数 ‘main’ 内: main.c:11:22: 警告: 1 番目の ‘strlen’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion] 11 | len = L - strlen(S); | ^ | | | char 次のファイルから読み込み: main.c:2: /usr/include/string.h:385:35: 備考: expected ‘const char *’ but argument is of type ‘char’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~
ソースコード
#include <stdio.h> #include <string.h> int main(void){ int L,N,i,a=1,len; char S; scanf("%d",&L); scanf("%d",&N); scanf("%s",&S); len = L - strlen(S); for(i = 1; i <= len; i++){ a = a*2; } printf("%d",a*N); }