結果
問題 | No.495 (^^*) Easy |
ユーザー | 57tggx |
提出日時 | 2017-04-06 21:31:01 |
言語 | C++11 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 905 ms |
コンパイル使用メモリ | 24,516 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-24 21:11:34 |
合計ジャッジ時間 | 1,956 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | WA | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:16: warning: ‘S[i]’ is used uninitialized in this function [-Wuninitialized] for(i = 0; S[i] != '#'; i += 5){ ~~~^
ソースコード
#include <stdio.h> int main(){ char S[100000]; unsigned i; unsigned l = 0, r = 0; for(i = 0; S[i] != '#'; i += 5){ if(S[i+1] == '^') l++; else r++; } printf("%d %d\n", l, r); }