結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-09 02:30:11 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 20,736 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-25 05:23:20 |
| 合計ジャッジ時間 | 951 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%s\n",a);
| ^~~~~~~~~~~~~~~
main.c:7:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%s",b);
| ^~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
char a[11],b[11];
int x,i;
x=0;
scanf("%s\n",a);
scanf("%s",b);
for(i=0;i<10;i++){
if(a[i]!=b[i]){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
}