結果
| 問題 | No.2827 Enter User Name to Play |
| コンテスト | |
| ユーザー |
nekoti
|
| 提出日時 | 2024-08-02 23:03:06 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 37,700 KB |
| 最終ジャッジ日時 | 2026-02-22 11:56:56 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#define _DEBUG 0
#if _DEBUG
#endif
#include<stdio.h>
#include<stdbool.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
int scan;//scanf警告用
int ans=0;
int i, j;
int n;scan=scanf("%d",&n);
char s[n+1];scan=scanf("%s",s);
int a;
for(i=0; i<n; i++)
{
scan=scanf("%d",&a);
printf("%c",s[a-1]);
}
return 0;
}
nekoti