結果
問題 |
No.3279 Dhole vs Monster
|
ユーザー |
![]() |
提出日時 | 2025-09-27 13:10:14 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 26,060 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-27 13:10:16 |
合計ジャッジ時間 | 1,512 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%s", &l, s); | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main() { int l; char s[16]; scanf("%d%s", &l, s); if (s[0] == 'B') l++; int r[5] = { 390,429,468,507,546 }; printf("%d\n", r[l - 1]); return 0; }