結果
| 問題 |
No.8064 う し た ぷ に き あ く ん 笑
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2020-04-01 21:49:54 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 1,273 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-27 10:33:26 |
| 合計ジャッジ時間 | 2,608 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 47 |
コンパイルメッセージ
main.c: In function 'main':
main.c:6:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
6 | 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:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
6 | scanf("%s",s);
| ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:33: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
12 | putchar('a'+j);
| ^~~~~~~
main.c:12:33: note: include '<stdio.h>' or provide a declaration of 'putchar'
ソースコード
char s[1000000];
char t[]="うしうあん笑たぷくんぷにしきあくうくあ笑うんしぷうきく笑う笑にきぷ笑たきたんしあしんうううたき笑にく笑笑";
int main(){
scanf("%s",s);
for(int i=0;s[i];i+=12){
for(int j=0;j<26;j++){
int flag=1;
for(int k=0;k<6;k++)flag&=s[i+k+k/3*3]==t[j*6+k];
if(flag){
putchar('a'+j);
break;
}
}
}
}
testestest