結果
| 問題 |
No.494 yukicoder
|
| コンテスト | |
| ユーザー |
mono1977
|
| 提出日時 | 2017-03-24 22:30:22 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 274 ms |
| コンパイル使用メモリ | 23,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 03:02:11 |
| 合計ジャッジ時間 | 747 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%s",s);
| ^~~~~~~~~~~~~
ソースコード
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
char s[16];
scanf("%s",s);
int i;
char *y="yukicoder";
for(i=0;i<16;i++){
if(s[i]=='?'){
printf("%c",y[i]);
break;
}
}
return 0;
}
mono1977