結果
| 問題 | 
                            No.304 鍵(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             funakoshi
                         | 
                    
| 提出日時 | 2019-08-26 16:27:11 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 624 bytes | 
| コンパイル時間 | 181 ms | 
| コンパイル使用メモリ | 30,208 KB | 
| 実行使用メモリ | 38,960 KB | 
| 最終ジャッジ日時 | 2024-07-16 17:58:04 | 
| 合計ジャッジ時間 | 6,809 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 5 | 
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    char ans[4]="";
    scanf("%s",&ans);
    for(int i=0;i<=9;i++)
    {
        for(int j=0;j<=9;j++)
        {
            for(int k=0;k<=9;k++)
            {
                if(ans[0]=='0'+i&&ans[1]=='0'+j&&ans[2]=='0'+k)
                {
                    printf("unlocked");
                    goto loopend;
                }
                else
                {
                    printf("locked\n");
                }
                
            }
        }
    }
    loopend:
    return 0;
}
            
            
            
        
            
funakoshi