結果
| 問題 |
No.8064 う し た ぷ に き あ く ん 笑
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2020-04-01 22:02:03 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 837 ms |
| コンパイル使用メモリ | 27,904 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 10:53:08 |
| 合計ジャッジ時間 | 3,421 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 47 |
コンパイルメッセージ
main.c: In function 'main':
main.c:8:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
8 | scanf("%s",s);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | char s[1000000];
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
8 | scanf("%s",s);
| ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:37: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
11 | for(int k=0;k<3;k++)putchar(t[c*6+k]);
| ^~~~~~~
main.c:11:37: note: include '<stdio.h>' or provide a declaration of 'putchar'
ソースコード
char s[1000000];
char t[]="うしうあん笑たぷくんぷにしきあくうくあ笑うんしぷうきく笑う笑にきぷ笑たきたんしあしんうううたき笑にく笑笑";
char sp[]=" ";
int main(){
scanf("%s",s);
for(int i=0;s[i];i++){
int c=s[i]-'a';
for(int k=0;k<3;k++)putchar(t[c*6+k]);
for(int k=0;k<3;k++)putchar(sp[k]);
for(int k=3;k<6;k++)putchar(t[c*6+k]);
for(int k=0;k<3;k++)putchar(sp[k]);
}
}
testestest